I saw that field but when I try to print things from it in my code it looks empty…
meta_opt.state
defaultdict(<class 'dict'>, {})

what is its purpose?

related:

what is self.state: What is self.state used for in optimizers?

is the update func I wrote ok: How do I load a new copy of my parameters to be trained in the optimizer without breaking it in a subtle way? 6