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
0bcf4dae
Commit
0bcf4dae
authored
May 13, 2022
by
Riyasat Ohib
Browse files
[refactor] Modified collections to collections.abc
parent
b33e705e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
fairscale/optim/grad_scaler.py
fairscale/optim/grad_scaler.py
+3
-1
fairscale/utils/params.py
fairscale/utils/params.py
+1
-1
No files found.
fairscale/optim/grad_scaler.py
View file @
0bcf4dae
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
# This source code is licensed under the MIT license found in the
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# 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
from
enum
import
Enum
import
logging
import
logging
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Union
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Union
...
...
fairscale/utils/params.py
View file @
0bcf4dae
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# This source code is licensed under the BSD license found in the
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
# LICENSE file in the root directory of this source tree.
from
collections
import
abc
import
collections
.abc
as
abc
from
math
import
inf
from
math
import
inf
from
typing
import
Any
,
Callable
,
Dict
,
List
,
Optional
from
typing
import
Any
,
Callable
,
Dict
,
List
,
Optional
...
...
sangwz
@sangwz
mentioned in commit
0e0b4917
·
May 28, 2024
mentioned in commit
0e0b4917
mentioned in commit 0e0b491797f2e4bf863d9c12252e57ffeeba5460
Toggle commit list
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