import tensorflow as tf
x=tf.constant(1)
y=tf.constant(2)
z=x+y
sess=tf.Session()
print(sess.run(z))
报错信息:
RunTimeError:implement_array_function method already has a docstring.
import tensorflow as tf
x=tf.constant(1)
y=tf.constant(2)
z=x+y
sess=tf.Session()
print(sess.run(z))
报错信息:
RunTimeError:implement_array_function method already has a docstring.
据我所知,可能是当前目录下某个自己的python文件与某些库或模块重名了,当python导入matplotlib或numpy时牵扯到重名的这个库或模块,导致错误。如果在pycharm里会出错,而在命令行却不会,应该是这种情况。我的真实经验,希望对各位朋友们有帮助