Skip to content

Commit

Permalink
Remove deprecated torch._six imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yasyf committed Feb 20, 2023
1 parent 8be8c01 commit 6cf7ac9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deepspeed/runtime/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from bisect import bisect_left

import torch
from torch._six import inf
from torch import inf
from deepspeed import comm as dist

from deepspeed.utils import groups, logger
Expand Down
2 changes: 1 addition & 1 deletion deepspeed/runtime/zero/stage3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import gc
import collections
from typing import Deque, Dict, Tuple
from torch._six import inf
from torch import inf

from deepspeed.runtime import ZeROOptimizer
from deepspeed.utils import logger
Expand Down
2 changes: 1 addition & 1 deletion deepspeed/runtime/zero/stage_1_and_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import torch
import os
from deepspeed import comm as dist
from torch._six import inf
from torch import inf
from packaging import version as pkg_version
from collections import OrderedDict

Expand Down

0 comments on commit 6cf7ac9

Please sign in to comment.