def add(module, norm=1):
     KernelNorm.add(module, SpectralNorm(norm))
Пример #2
0
 def add(module, scale=True, axis=-1, epsilon=1e-5):
     KernelNorm.add(module, WeightNorm(scale, axis, epsilon))