Undefined variable 'AdaBoundW'
253 weight_decay=weight_decay,
254 amsbound=amsbound,
255 )
256 super(AdaBoundW, self).__init__(params, defaults)257 self.base_lrs = [group['lr'] for group in self.param_groups]
258
259 def __setstate__(self, state: State) -> None:
Description
The variable name is not defined where it is used. This will lead to an error during the runtime. Make sure there is no typo. If the name was supposed to be imported, verify that you've actually imported the name.
Bad practice
import os.path
if os.path.exits('setup.cfg'): # misspelled `exists`
print('Found config file')
Preferred:
import os.path
if os.path.exists('setup.cfg'):
print('Found config file')