wifimale 2019-03-04 13:46 采纳率: 0%
浏览 7259

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.

  • 写回答

2条回答 默认 最新

  • LK_2018 2019-06-06 23:15
    关注

    据我所知,可能是当前目录下某个自己的python文件与某些库或模块重名了,当python导入matplotlib或numpy时牵扯到重名的这个库或模块,导致错误。如果在pycharm里会出错,而在命令行却不会,应该是这种情况。我的真实经验,希望对各位朋友们有帮助

    评论

报告相同问题?