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
apex
Commits
25bfcb91
Unverified
Commit
25bfcb91
authored
Nov 10, 2021
by
Masaki Kozuki
Committed by
GitHub
Nov 09, 2021
Browse files
conditionally import amp_C (#1211)
parent
2205cff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
apex/transformer/pipeline_parallel/utils.py
apex/transformer/pipeline_parallel/utils.py
+2
-1
No files found.
apex/transformer/pipeline_parallel/utils.py
View file @
25bfcb91
...
...
@@ -20,10 +20,11 @@ import torch
from
torch.nn.parallel
import
DistributedDataParallel
from
apex.multi_tensor_apply
import
multi_tensor_applier
import
amp_C
from
apex.transformer
import
parallel_state
from
apex.transformer.microbatches
import
build_num_microbatches_calculator
from
apex.transformer.pipeline_parallel._timers
import
_Timers
if
multi_tensor_applier
.
available
:
import
amp_C
_GLOBAL_ARGS
=
None
...
...
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