(self, model)
| 1618 | return |
| 1619 | |
| 1620 | def _set_client_model(self, model): |
| 1621 | # register client model in _modules so that nn.module methods work correctly |
| 1622 | modules = self.__dict__.get('_modules') |
| 1623 | modules['module'] = model |
| 1624 | # register module attribute in engine but avoid getattr |
| 1625 | self.__dict__['module'] = model |
| 1626 | |
| 1627 | def _configure_distributed_model(self, model): |
| 1628 | self._set_client_model(model) |
no test coverage detected