特牛生活网

tf.get_variable() vs tf.Variable(),tf.name_scope() vs tf.variable_scope()_vs.get_variable_scope()-CSDN博客

网友收藏
文章浏览阅读274次。scope 命名方法对于一个复杂的 tensorflow 模型会有很多个变量, tf.variable_scope() :提供了简单的命名空间技术以避免冲突;tf.get_variable():从同一个变量范围内获取或者创建;见名知意,tf.Variable() variable 且以大写字母开头,该函数在于定义一个变量;tf.get_variable():可根据 name 值_vs.get_variable_scope()