This commit is contained in:
jh 2021-05-08 12:37:27 -07:00
commit c2bdf26520

View file

@ -580,7 +580,7 @@ Examples: df, liae, df-d, df-ud, liae-ud, ...
x = tf.cast(x, tf.float32)
x = tf.math.scalar_mul(1-smoothing, x)
# x = x + (smoothing/num_labels)
x = tf.reshape(x, (self.batch_size,) + tensor.shape.as_list()[1:])
x = tf.reshape(x, (self.batch_size,) + tensor.get_shape().as_list()[1:])
return x
smoothing = self.options['gan_smoothing']