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
ColossalAI
Commits
f5ca88ec
Commit
f5ca88ec
authored
Feb 14, 2022
by
Frank Lee
Browse files
fixed apex import (#227)
parent
eb3fda4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/amp/apex_amp/apex_amp.py
colossalai/amp/apex_amp/apex_amp.py
+1
-1
No files found.
colossalai/amp/apex_amp/apex_amp.py
View file @
f5ca88ec
...
@@ -5,7 +5,7 @@ import torch.nn as nn
...
@@ -5,7 +5,7 @@ import torch.nn as nn
try
:
try
:
import
apex.amp
as
apex_amp
import
apex.amp
as
apex_amp
except
ImportError
:
except
ImportError
:
raise
ImportError
(
'Cannot import apex.amp correctly.'
)
pass
from
torch
import
Tensor
from
torch
import
Tensor
...
...
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