202010-08 tensorflow 动态获取 BatchSzie 的大小实例 我就废话不多说了,大家还是直接看代码吧~importtensorflowastfimportsyswithtf.variable_scope('ha'):a1=tf.get_variable('a',shape=[],dtype=tf.int32)withtf.variable_scope('haha'):a2=tf.get_variable('a',shape=[],dtype=tf.int32)withtf.variable_scope('hahaha'):a3=tf.get_variable('a',shape=[],dtype=tf.int32)withtf.variable_scope('ha',reuse=True):#不会创建新的变量a... 继续阅读 >