You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been re-implementing ImprovedGAN for semi-supervised learning for cifar10 using nn.py. This line is defining a variable by initializing it by a tensor from the build-up graph. Initializing a variable by such a tensor makes it so slow. I think this is basically a tensorflow library issue.
The text was updated successfully, but these errors were encountered:
I am not sure this is a proper resolution for the above, but I tried the below:
(a) change g = tf.get_variable('g', dtype=tf.float32, initializer=scale_init, trainable=True) by g = tf.get_variable('g', shape=scale_init.get_shape().as_list(), dtype=tf.float32, initializer=tf.constant_initializer(1.), trainable=train_g) and b = tf.get_variable('b', dtype=tf.float32, initializer=-m_init*scale_init, trainable=True) by b = tf.get_variable('b', shape=scale_init.get_shape().as_list(), dtype=tf.float32, initializer=tf.constant_initializer(0.), trainable=True)
weightnorm/tensorflow/nn.py
Line 188 in dff0cd1
I've been re-implementing ImprovedGAN for semi-supervised learning for cifar10 using nn.py. This line is defining a variable by initializing it by a tensor from the build-up graph. Initializing a variable by such a tensor makes it so slow. I think this is basically a tensorflow library issue.
The text was updated successfully, but these errors were encountered: