parameters: (self, use_nesterov=False, use_locking=False, gradient_scale=1.0)
docstring: Initialize ApplyMomentum.
docstring_summary: Initialize ApplyMomentum.
docstring_tokens: Initialize ApplyMomentum .
function: def __init__(self, use_nesterov=False, use_locking=False, gradient_scale=1.0):
          """Initialize ApplyMomentum."""
          self.use_nesterov = validator.check_bool(use_nesterov, "use_nesterov", self.name)
          self.use_locking = validator.check_bool(use_locking, "use_locking", self.name)
          validator.check_value_type('gradient_scale', gradient_scale, [float], self.name)
          self.init_prim_io_names(inputs=['variable', 'accumulation', 'learning_rate', 'gradient', 'momentum'],
                                  outputs=['output'])
          self.add_prim_attr('side_effect_mem', True)
function_tokens: def __init__ ( self , use_nesterov = False , use_locking = False , gradient_scale = 1.0 ) : self . use_nesterov = validator . check_bool ( use_nesterov , "use_nesterov" , self . name ) self . use_locking = validator . check_bool ( use_locking , "use_locking" , self . name ) validator . check_value_type ( 'gradient_scale' , gradient_scale , [ float ] , self . name ) self . init_prim_io_names ( inputs = [ 'variable' , 'accumulation' , 'learning_rate' , 'gradient' , 'momentum' ] , outputs = [ 'output' ] ) self . add_prim_attr ( 'side_effect_mem' , True )