You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But actually the 'optimizer' and 'scheduler' we pass from a functools.partial, So does the Proper type hint is torch.optim.Optimizer, and torch.optim.lr_scheduler?
The text was updated successfully, but these errors were encountered:
cnjackhu
changed the title
does the partial type is torch.optim.Optimizer?
Proper type hint for init method in class MNISTLitModule(LightningModule)
Apr 15, 2024
init method of the
class MNISTLitModule(LightningModule):
But actually the 'optimizer' and 'scheduler' we pass from a
functools.partial
, So does the Proper type hint istorch.optim.Optimizer
, andtorch.optim.lr_scheduler
?The file from model/mnist.yaml
The text was updated successfully, but these errors were encountered: