tensorflow中使用變量作用域及tf.variable(),tf,getvariable()與tf.variable_scope()的用法
一 .tf.variable() 在模型中每次調用都會重建變量,使其存儲相同變量而消耗內存,如: def repeat_value(): weight=tf.variable(tf.random_normal([5,5,6]),name='weight') return weight ...