We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a2ec0 commit 299ef38Copy full SHA for 299ef38
elasticai_api/pytorch/optimizer.py
@@ -92,8 +92,7 @@ def __init__(
92
self._requires_update = set()
93
self._synchronized = False
94
self._should_synchronize = True
95
- if size() > 1 or os.environ.get("HOROVOD_ELASTIC") == "1":
96
- self._register_hooks()
+ self._register_hooks()
97
98
self.fixed_global_batch_size = fixed_global_batch_size
99
self._global_batch_num_per_step = global_batch_num_per_step
0 commit comments