【TF2.1.0】Tensor object has no attribute numpy

语句: result.numpy() 报错: AttributeError: ‘Tensor’ object has no attribute ‘numpy’ 工具: jupyter-notebook 现象: A. 直接再终端执行 python mnist.py 是没有报错的 B. 再终端执行 python 后,直接写代码也是没有问题的 原因: A. 我在一片博客中找到:.numpy方法只用在使用
相关文章
相关标签/搜索