class_docstr: Helper class to simplify the handling of gradient buckets
class_docstr_tok: ["Helper","class","to","simplify","the","handling","of","gradient","buckets"]
docstr: Set all the grads to zero
docstr_tok: ["Set","all","the","grads","to","zero"]
code: def zero(self) -> None:
      """
      Set all the grads to zero
      """
      self.buffer.fill_(0.0)
  
imports: from typing import Any, Callable, List, Optional, Union
  import torch
label_desc: Use image node_id 6 for calling the GradBucket obj's underlying member method code with example usage: obj.zero() without return types