class_docstr: Base optimizer class for the fastai library, updating `params` with `cbs`
class_docstr_tok: ["Base","optimizer","class","for","the","fastai","library",",","updating","`","params","`","with","`","cbs","`"]
code: def state_dict(self):
      state = [self.state[p] for p, *_ in self.all_params()]
      return {"state": state, "hypers": self.hypers}
  
imports: from __future__ import annotations
  from .torch_basics import *
label_desc: Use image node_id 5 for calling the Optimizer obj's underlying member method code with example usage: obj.state_dict() and returns: dict