Sayed_Nadim:

from torch.nn.utils import spectral_norm



There is no problem when I am using 'spectral_norm from  ‘from torch.nn.utils import spectral_norm’  but using my defined SpectralNorm class, I got the errors above.