tf.Variable()与tf.get_variable()对比
2017-09-16 21:57
267 查看
tf.Variable()与tf.get_variable()对比
采用tf.Variable()
输出结果
结果表明采用Variable建立变量时,即使name相同,TersorFlow也会自动的生成两个不同的name的变量
采用tf.Variable()
v11=tf.Variable(tf.zeros([1]),name='one') v21=tf.Variable(tf.zeros([1]),name='one') print (v11.name) print (v21.name)
输出结果
one:0 one_1:0
结果表明采用Variable建立变量时,即使name相同,TersorFlow也会自动的生成两个不同的name的变量
相关文章推荐
- tensorflow中tf.Variable() 方法和 tf.get_variable()方法的区别
- 【tensorflow 学习】tf.get_variable()和tf.Variable()的区别
- 彻底弄懂tf.Variable、tf.get_variable、tf.variable_scope以及tf.name_scope异同
- tf.Variable()和tf.get_variable()的使用方法和相同点
- tensorflow API: tf.get_variable
- tensorflow的共享变量,tf.Variable(),tf.get_variable(),tf.Variable_scope(),tf.name_scope()联系与区别
- tensorflow variable_scope,tf.name_scope, tf.variable, tf.get_varible
- tf.get_variable() vs tf.Variable(),tf.name_scope() vs tf.variable_scope()
- tensorflow 变量生成 变量管理 tf.Variable & tf.get_variable & tf.variable_scope
- [Tensorflow]Sharing Variables 共享权值【tf.get_variable 和 tf.variable_scope】
- tf.get_variable 和tf.variable_scope
- tensorflow之tf.placeholder 与 tf.Variable区别对比
- tensorflow学习之路(2-1):tf.variable_scope(), tf.name_scope(), tf.get_variable()的认识
- Tensorflow中tf.get_variable和tf.variable_scope的使用
- tf.get_variable tf.variable_scope tf.name_scope
- ValueError: Variable E_conv0/w/Adam/ does not exist, or was not created with tf.get_variable().
- 图变量作用域tf.get_variable
- tf.get_variable 和tf.variable_scope
- TensorFlow 学习(一)—— tf.get_variable() vs tf.Variable(),tf.name_scope() vs tf.variable_scope()
- #tensorflow学习笔记#理解tf.get_variable