Parameters:
      * module (nn.Module) -- containing module
  * **name** (*str**, **optional*) -- name of weight parameter

  * **n_power_iterations** (*int**, **optional*) -- number of
    power iterations to calculate spectral norm

  * **eps** (*float**, **optional*) -- epsilon for numerical
    stability in calculating norms

  * **dim** (*int**, **optional*) -- dimension corresponding to
    number of outputs, the default is "0", except for modules that
    are instances of ConvTranspose{1,2,3}d, when it is "1"

Returns:
      The original module with the spectral norm hook
Return type:
      T_module
Note:
 This function has been reimplemented as
 "torch.nn.utils.parametrizations.spectral_norm()" using the new
 parametrization functionality in
 "torch.nn.utils.parametrize.register_parametrization()". Please
 use the newer version. This function will be deprecated in a
 future version of PyTorch.

Example: