tf.variable_scope & tf.name_scope
tf.name_scope不会给tf.get_variable()加命名前缀,tf.variable_scope加命名前缀。
查看模型使用的所有变量
for v in tf.all_variables():
print(v.name)
tf.variable_scope & tf.name_scope
tf.name_scope不会给tf.get_variable()加命名前缀,tf.variable_scope加命名前缀。
查看模型使用的所有变量
for v in tf.all_variables():
print(v.name)