【发布时间】:2019-02-04 12:38:13
【问题描述】:
我有一些使用 tf.Session 低级 API 编写的代码,由于我想在 TPU 上使用它,我最好将其重写为 tf.Estimator API,因为有一个用于 TPU 加速的 TPUEstimator 类。
是否有执行此操作的标准方法或如何处理该操作的指南?
感谢您的帮助!
【问题讨论】:
标签: python tensorflow google-cloud-tpu
我有一些使用 tf.Session 低级 API 编写的代码,由于我想在 TPU 上使用它,我最好将其重写为 tf.Estimator API,因为有一个用于 TPU 加速的 TPUEstimator 类。
是否有执行此操作的标准方法或如何处理该操作的指南?
感谢您的帮助!
【问题讨论】:
标签: python tensorflow google-cloud-tpu
可以在此处找到一个很好的初始指南:
https://cloud.google.com/tpu/docs/using-estimator-api
以及此页面上“TPU 估算器”部分的更多详细信息:
https://www.tensorflow.org/guide/using_tpu
如果您在阅读了这些文档以及它们链接的其他文档后还有其他问题,请通过提出更详细的问题并使用 google-cloud-tpu 标记进行跟进。
【讨论】: