original_docstring: Apply momentum optimizer to the weight parameter using Tensor.
docstring: Apply momentum optimizer to the weight parameter using Tensor.
docstring_tokens: Apply momentum optimizer to the weight parameter using Tensor .
code: def _tensor_run_opt_ext(opt, momentum, learning_rate, gradient, weight, moment):
      """Apply momentum optimizer to the weight parameter using Tensor."""
      success = True
      success = F.depend(success, opt(weight, moment, learning_rate, gradient, momentum))
      return success
code_tokens: def _tensor_run_opt_ext ( opt , momentum , learning_rate , gradient , weight , moment ) : success = True success = F . depend ( success , opt ( weight , moment , learning_rate , gradient , momentum ) ) return success
short_docstring: Apply momentum optimizer to the weight parameter using Tensor.
short_docstring_tokens: Apply momentum optimizer to the weight parameter using Tensor .
comment: """Apply momentum optimizer to the weight parameter using Tensor."""