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
defsetup(self, module: nn.Module, *optimizers: Optimizer, scheduler: Optional[_LRScheduler] =None, move_to_device: bool=True, _reapply_compile: bool=True,) ->Any: # no specific return because the way we want our API to look does not play well with mypy
212
+
defsetup(
213
+
self,
214
+
module: nn.Module,
215
+
*optimizers: Optimizer,
216
+
scheduler: Optional[_LRScheduler] =None,
217
+
move_to_device: bool=True,
218
+
_reapply_compile: bool=True,
219
+
) ->Any: # no specific return because the way we want our API to look does not play well with mypy
213
220
r"""Set up a model and its optimizers for accelerated training.
214
-
221
+
215
222
Args:
216
223
module: A :class:`torch.nn.Module` to set up
217
224
*optimizers: The optimizer(s) to set up (no optimizers is also possible)
0 commit comments