scope 命名方法

scope能让你命名变量的时候轻松很多,一下讨论TensorFlow中的两种定义scope的方式。 tf.name_scope() 在TensorFlow当中有两种途径生成变量variable,一种是tf.get_variable(),另一种是tf.variable()。如果在tf.name_scope()的框架下使用这两种方式,结果会如下所示: 可以看出使用 tf.Variable() 定义的时
相关文章
相关标签/搜索