Skip to content

Commit

Permalink
[refactor] Modified collections to collections.abc
Browse files Browse the repository at this point in the history
  • Loading branch information
riohib committed May 13, 2022
1 parent b33e705 commit 0bcf4da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fairscale/optim/grad_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# 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
import collections.abc as abc
from collections import defaultdict

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 0bcf4da

Please sign in to comment.