tensorflow教程里,把前向传播网络单独写了一个程序mnist_inference.py,里面有with tf.variable_scope(‘layer1’): 没有设置reuse,而训练程序每次迭代都会调用mnist_inference.py里的函数,第一次调用会创建新变量,那么后面的调用肯定也会创建新变量,但是为什么程序没有报错?
tf.variable_scope问题
最新推荐文章于 2020-07-20 11:36:37 发布
tensorflow教程里,把前向传播网络单独写了一个程序mnist_inference.py,里面有with tf.variable_scope(‘layer1’): 没有设置reuse,而训练程序每次迭代都会调用mnist_inference.py里的函数,第一次调用会创建新变量,那么后面的调用肯定也会创建新变量,但是为什么程序没有报错?