do_nothing_optimizer
DoNothingOptimizer
¶
Bases: torch.optim.Optimizer
An optimizer that doesn't do anything,
i.e. step
and zero_grad
are empty functions.
Source code in pytorch_adapt\layers\do_nothing_optimizer.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|