TensorFlow中如何实例化变量命名空间?
- 内容介绍
- 文章标签
- 相关推荐
本文共计972个文字,预计阅读时间需要4分钟。
使用 `tf.name_scope(name)` 创建命名空间,以便更好地管理变量的命名。例如,在 TensorBoard 中,由于使用了 `name_scope`,我们的 Graph 才能看起来更有序。`name_scope` 对 `get_variable` 有影响。
一、name_scope
with tf.name_scope(name):
name_scope: 为了更好地管理变量的命名空间而提出的。比如在 tensorboard 中,因为引入了 name_scope, 我们的 Graph 看起来才井然有序。
本文共计972个文字,预计阅读时间需要4分钟。
使用 `tf.name_scope(name)` 创建命名空间,以便更好地管理变量的命名。例如,在 TensorBoard 中,由于使用了 `name_scope`,我们的 Graph 才能看起来更有序。`name_scope` 对 `get_variable` 有影响。
一、name_scope
with tf.name_scope(name):
name_scope: 为了更好地管理变量的命名空间而提出的。比如在 tensorboard 中,因为引入了 name_scope, 我们的 Graph 看起来才井然有序。

