我正在使用tensorflow 2.4.1和来自tensorflow 1的代码。每当我运行以下命令时,都会出现错误
inputs = tf.placeholder(tf.int32, [None, None], name = 'input')
错误
AttributeError Traceback (most recent call last)
<ipython-input-14-c2404ca8696c> in <module>()
----> 1 inputs = tf.placeholder(tf.int32, [None, None], name = 'input')
AttributeError: module 'tensorflow' has no attribute 'placeholder'