class_docstr: A wrapper class for existing PyTorch optimizers
class_docstr_tok: ["A","wrapper","class","for","existing","PyTorch","optimizers"]
code: def clear_state(self):
      self.opt.state = defaultdict(dict, {})
  
imports: from __future__ import annotations
  from .torch_basics import *
label_desc: Use image node_id 4 for calling the OptimWrapper obj's underlying member method code with example usage: obj.clear_state() without return types