parameters: (self)
return_statement: return super(GradScaler, self).is_enable()
docstring: Enable loss scaling or not.
  
          Returns:
              bool: enable loss scaling return True else return False.
          
          Examples:
              .. code-block:: python
  
                  # required: gpu,xpu
                  import paddle
                  scaler = paddle.amp.GradScaler(enable=True,
                                                 init_loss_scaling=1024,
                                                 incr_ratio=2.0,
                                                 decr_ratio=0.5,
                                                 incr_every_n_steps=1000,
                                                 decr_every_n_nan_or_inf=2,
                                                 use_dynamic_loss_scaling=True)
                  enable = scaler.is_enable()
                  print(enable) # True
docstring_summary: Enable loss scaling or not.
docstring_tokens: Enable loss scaling or not .
function: def is_enable(self):
          """
          Enable loss scaling or not.
  
          Returns:
              bool: enable loss scaling return True else return False.
          
          Examples:
              .. code-block:: python
  
                  # required: gpu,xpu
                  import paddle
                  scaler = paddle.amp.GradScaler(enable=True,
                                                 init_loss_scaling=1024,
                                                 incr_ratio=2.0,
                                                 decr_ratio=0.5,
                                                 incr_every_n_steps=1000,
                                                 decr_every_n_nan_or_inf=2,
                                                 use_dynamic_loss_scaling=True)
                  enable = scaler.is_enable()
                  print(enable) # True
          """
          return super(GradScaler, self).is_enable()
function_tokens: def is_enable ( self ) : return super ( GradScaler , self ) . is_enable ( )