【问题标题】:Getting error in TPU with python mnist_tpu.py --use_tpu=false --tpu=''使用 python mnist_tpu.py --use_tpu=false --tpu='' 在 TPU 中出现错误
【发布时间】:2018-09-29 07:55:00
【问题描述】:

我尝试从 tensorflow git 运行这段代码:mnist_tpu with

python mnist_tpu.py --tpu='' 
python mnist_tpu.py --use_tpu=false --tpu=''

但我总是收到以下错误:

AttributeError: module 'official.mnist.mnist' has no attribute 'create_model'

我不知道 create_model 方法是在哪里定义的。我感觉文档仍然缺少一些信息。

有什么想法吗?提前致谢。

【问题讨论】:

    标签: tensorflow google-cloud-tpu


    【解决方案1】:

    'create_model' 在 mnist.py 中定义,它与 mnist_tpu.py 一起出现。确认您从 github 获得该文件:https://github.com/tensorflow/models/blob/master/official/mnist/mnist.py 它会起作用的。

    【讨论】:

      猜你喜欢
      • 2018-09-27
      • 2021-10-19
      • 2021-03-30
      • 2019-12-12
      • 1970-01-01
      • 2019-05-06
      • 2021-02-17
      • 2019-09-02
      • 2019-03-30
      相关资源
      最近更新 更多