tensorflow 中namescope 与variable scope的区别

区别

  • 使用tf.Variable()的时候,tf.name_scope()和tf.variable_scope() 都会给 Variable 和 op 的 name属性加上前缀。
  • 使用tf.get_variable()的时候,tf.name_scope()就不会给 tf.get_variable()创建出来的Variable加前缀。但是 tf.Variable() 创建出来的就会受到 name_scope 的影响.

参考

https://blog.csdn.net/u012436149/article/details/53081454

猜你喜欢

转载自www.cnblogs.com/laokanblog/p/11251189.html