(self, model)
| 2137 | return |
| 2138 | |
| 2139 | def _set_client_model(self, model): |
| 2140 | # register client model in _modules so that nn.module methods work correctly |
| 2141 | modules = self.__dict__.get('_modules') |
| 2142 | modules['module'] = model |
| 2143 | # register module attribute in engine but avoid getattr |
| 2144 | self.__dict__['module'] = model |
| 2145 | |
| 2146 | def _configure_distributed_model(self, model): |
| 2147 | self._set_client_model(model) |
no test coverage detected