【发布时间】:2018-07-24 02:43:15
【问题描述】:
理论上,我们可以在任何支持 Tensorflow 的平台上训练支持 Tensorflow 的 Keras 模型。但是,我似乎在 Google 的文档 https://cloud.google.com/tpu/docs/ 中找不到任何有关如何操作的信息。
【问题讨论】:
标签: google-cloud-platform keras
理论上,我们可以在任何支持 Tensorflow 的平台上训练支持 Tensorflow 的 Keras 模型。但是,我似乎在 Google 的文档 https://cloud.google.com/tpu/docs/ 中找不到任何有关如何操作的信息。
【问题讨论】:
标签: google-cloud-platform keras
【讨论】:
tf.keras.applications' 模型。我刚刚用导入tf.keras.applications 模型的函数替换了cnn_model。但我收到错误 NotImplementedError: Operation of type ReadVariableOp (block1_conv1/Conv2D/ReadVariableOp) is not supported on TPU for inference。如果在图中使用此操作,则执行将失败。确保您的变量正在使用 variable_scope。