Skip to content

Commit

Permalink
Revert "[refactor] Modified collections to collections.abc" (#987)
Browse files Browse the repository at this point in the history
This reverts commit 0bcf4da.

Co-authored-by: Min Xu <min.xu.public@gmail.com>
  • Loading branch information
min-xu-ai and flying-x committed May 13, 2022
1 parent 0bcf4da commit 0e0b491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions fairscale/optim/grad_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import collections.abc as abc
from collections import defaultdict

from collections import abc, 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.

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

Expand Down

0 comments on commit 0e0b491

Please sign in to comment.