Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
fairscale
Commits
7510150b
Unverified
Commit
7510150b
authored
May 13, 2022
by
Riyasat Ohib
Committed by
GitHub
May 13, 2022
Browse files
[refactor] Modified collections to collections.abc in import (#988)
parent
0a85470d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
fairscale/optim/grad_scaler.py
fairscale/optim/grad_scaler.py
+2
-1
fairscale/utils/params.py
fairscale/utils/params.py
+1
-1
No files found.
fairscale/optim/grad_scaler.py
View file @
7510150b
...
...
@@ -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
...
...
fairscale/utils/params.py
View file @
7510150b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment