|View source on GitHub|
Normalizes a weight matrix by its spectral norm.
tf.contrib.gan.features.spectral_normalize( w, power_iteration_rounds=1, name=None )
w: The weight matrix to be normalized.
power_iteration_rounds: The number of iterations of the power method to perform. A higher number yields a better approximation.
name: An optional scope name.
A normalized weight matrix tensor.