parameters: (accumulation_step, cumulative_grad, grad)
return_statement: return P.AssignAdd()(cumulative_grad, grad / accumulation_step)
docstring: Apply gradient accumulation to cumulative grad.
docstring_summary: Apply gradient accumulation to cumulative grad.
docstring_tokens: Apply gradient accumulation to cumulative grad .
function: def cumulative_grad_process(accumulation_step, cumulative_grad, grad):
      """Apply gradient accumulation to cumulative grad."""
      return P.AssignAdd()(cumulative_grad, grad / accumulation_step)
function_tokens: def cumulative_grad_process ( accumulation_step , cumulative_grad , grad ) : return P . AssignAdd ( ) ( cumulative_grad , grad / accumulation_step )