【问题标题】:Rewrite tf.Session into tf.Estimator API将 tf.Session 重写为 tf.Estimator API
【发布时间】:2019-02-04 12:38:13
【问题描述】:

我有一些使用 tf.Session 低级 API 编写的代码,由于我想在 TPU 上使用它,我最好将其重写为 tf.Estimator API,因为有一个用于 TPU 加速的 TPUEstimator 类。

是否有执行此操作的标准方法或如何处理该操作的指南?

感谢您的帮助!

【问题讨论】:

    标签: python tensorflow google-cloud-tpu


    【解决方案1】:

    可以在此处找到一个很好的初始指南:

    https://cloud.google.com/tpu/docs/using-estimator-api

    以及此页面上“TPU 估算器”部分的更多详细信息:

    https://www.tensorflow.org/guide/using_tpu

    如果您在阅读了这些文档以及它们链接的其他文档后还有其他问题,请通过提出更详细的问题并使用 google-cloud-tpu 标记进行跟进。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-14
      • 2016-09-27
      • 2017-04-09
      • 2021-08-07
      • 2020-03-29
      相关资源
      最近更新 更多