【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方法只用在使用
相關文章
相關標籤/搜索