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 674f457 commit d975305Copy full SHA for d975305
tests/tests_pytorch/strategies/test_ddp_integration_comm_hook.py
@@ -12,7 +12,6 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
import sys
15
-from enum import member
16
from unittest import mock
17
18
import pytest
@@ -27,6 +26,8 @@
27
26
import torch.distributed.algorithms.ddp_comm_hooks.post_localSGD_hook as post_localSGD
28
29
if sys.version_info >= (3, 13):
+ from enum import member
30
+
31
post_localSGD = member(post_localSGD)
32
from torch.distributed.algorithms.ddp_comm_hooks import default_hooks as default
33
from torch.distributed.algorithms.ddp_comm_hooks import powerSGD_hook as powerSGD
0 commit comments