codecamp

container的使用

tf.container

container ( container_name )

定义在:tensorflow/python/framework/ops.py.

参见指南:构建图>实用功能

使用默认图形来包装 Graph.container().

ARGS:

  • container_name:要在上下文中使用的容器字符串.

返回:

返回一个指定用于新创建的有状态操作的默认容器的上下文管理器.

TensorFlow使用初始化器生成具有常量值的张量
control_dependencies的使用
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定