Skip to content

Commit

Permalink
[refactor] Modified collections to collections.abc in import (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
riohib committed May 14, 2022
1 parent 0a85470 commit 7510150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fairscale/optim/grad_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from collections import abc, defaultdict
from collections import defaultdict
import collections.abc as abc
from enum import Enum
import logging
from typing import Any, Dict, List, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion fairscale/utils/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.

from collections import abc
import collections.abc as abc
from math import inf
from typing import Any, Callable, Dict, List, Optional

Expand Down

0 comments on commit 7510150

Please sign in to comment.