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
27310f34
Commit
27310f34
authored
May 20, 2020
by
lcskrishna
Browse files
missing import packages
parent
c92b9751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/L0/run_amp/test_multiple_models_optimizers_losses.py
tests/L0/run_amp/test_multiple_models_optimizers_losses.py
+2
-0
No files found.
tests/L0/run_amp/test_multiple_models_optimizers_losses.py
View file @
27310f34
...
@@ -13,6 +13,8 @@ from torch.nn import Parameter
...
@@ -13,6 +13,8 @@ from torch.nn import Parameter
from
utils
import
common_init
,
HALF
,
FLOAT
,
\
from
utils
import
common_init
,
HALF
,
FLOAT
,
\
ALWAYS_HALF
,
ALWAYS_FLOAT
,
MATCH_INPUT
ALWAYS_HALF
,
ALWAYS_FLOAT
,
MATCH_INPUT
from
apex.testing.common_utils
import
skipIfRocm
class
MyModel
(
torch
.
nn
.
Module
):
class
MyModel
(
torch
.
nn
.
Module
):
def
__init__
(
self
,
unique
):
def
__init__
(
self
,
unique
):
super
(
MyModel
,
self
).
__init__
()
super
(
MyModel
,
self
).
__init__
()
...
...
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