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
14fe2b67
"src/array/vscode:/vscode.git/clone" did not exist on "f2c80b440e80226441dc6c11a95ade10defaaf11"
Unverified
Commit
14fe2b67
authored
Jul 01, 2019
by
mcarilli
Committed by
GitHub
Jul 01, 2019
Browse files
Update scaler.py
parent
ff6b8bb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/amp/scaler.py
apex/amp/scaler.py
+1
-1
No files found.
apex/amp/scaler.py
View file @
14fe2b67
...
@@ -45,7 +45,7 @@ class LossScaler(object):
...
@@ -45,7 +45,7 @@ class LossScaler(object):
max_loss_scale
=
2.
**
24
):
max_loss_scale
=
2.
**
24
):
if
loss_scale
==
"dynamic"
:
if
loss_scale
==
"dynamic"
:
self
.
dynamic
=
True
self
.
dynamic
=
True
self
.
_loss_scale
=
init_scale
self
.
_loss_scale
=
min
(
max_loss_scale
,
init_scale
)
else
:
else
:
self
.
dynamic
=
False
self
.
dynamic
=
False
self
.
_loss_scale
=
loss_scale
self
.
_loss_scale
=
loss_scale
...
...
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