【问题标题】:Downside of setting clear_devices=true when saving or loading graph in Tensorflow在 Tensorflow 中保存或加载图形时设置 clear_devices=true 的缺点
【发布时间】:2017-04-13 14:10:14
【问题描述】:

Tensorflow 中有许多方法采用clear_devices 设备。例如session_bundle.exporter.Exporter:initimport_meta_graphexport_meta_graph 和 python.training.saver.Saver.export_meta_graph`。文档状态:

 clear_devices: Whether or not to clear the device field for an `Operation`
    or `Tensor` during export.

但不要真正澄清剥离该信息的含义。

【问题讨论】:

    标签: tensorflow tensorflow-serving


    【解决方案1】:

    从图中剥离设备信息意味着,在不添加新的设备放置指令的情况下,操作将被放置per defaults。如果导出/导入的图表将在不同的设置中执行,或者如果提供给它的数据不同(例如,在 GPU 上训练后在 CPU 上使用小批量服务),这可能会很有用。

    【讨论】:

      猜你喜欢
      • 2016-12-21
      • 1970-01-01
      • 1970-01-01
      • 2010-10-21
      • 1970-01-01
      • 1970-01-01
      • 2018-03-04
      • 2020-01-08
      • 1970-01-01
      相关资源
      最近更新 更多