()
| 39 | |
| 40 | |
| 41 | def register_torch_optimizers(): |
| 42 | for name, module in inspect.getmembers(torch.optim): |
| 43 | if name.startswith('__'): |
| 44 | continue |
| 45 | if inspect.isclass(module) and issubclass(module, |
| 46 | torch.optim.Optimizer): |
| 47 | OPTIMIZERS.register_module( |
| 48 | default_group, module_name=name, module_cls=module) |
| 49 | |
| 50 | |
| 51 | register_torch_optimizers() |
no test coverage detected
searching dependent graphs…