add back variable scope, removal of which broke mnist.
@@ -162,6 +162,7 @@ class LinearnGPU(LayernGPU):
self.input_shape = [batch_size, dim]
self.output_shape = [batch_size, self.num_hid]
shape = [dim, self.num_hid]
+ with tf.variable_scope(self.name):
init = tf.truncated_normal(shape, stddev=0.1)
self.W = self.get_variable(self.w_name, init)
self.b = self.get_variable('b', .1 + np.zeros(
@@ -186,6 +187,7 @@ class Conv2DnGPU(LayernGPU):
self.output_channels)
assert len(kernel_shape) == 4
assert all(isinstance(e, int) for e in kernel_shape), kernel_shape
+ with tf.variable_scope(self.name):
init = tf.truncated_normal(kernel_shape, stddev=0.1)
self.kernels = self.get_variable(self.w_name, init)
self.b = self.get_variable(
