class_docstr: Accumulate gradients before updating weights
class_docstr_tok: ["Accumulate","gradients","before","updating","weights"]
code: def __init__(self, n_acc=32):
      store_attr()
  
imports: from __future__ import annotations
  from ..basics import *
  from .progress import *
  from .fp16 import *
label_desc: Use image node_id 1 to create a new GradientAccumulation object from inherited base classes: Callback with example: obj = GradientAccumulation(n_acc)