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
deepspeed
Commits
2d1f7c01
Unverified
Commit
2d1f7c01
authored
Dec 02, 2020
by
Stas Bekman
Committed by
GitHub
Dec 02, 2020
Browse files
[engine] train should be able to get `mode` arg (#571)
parent
845921b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
deepspeed/runtime/engine.py
deepspeed/runtime/engine.py
+2
-2
No files found.
deepspeed/runtime/engine.py
View file @
2d1f7c01
...
...
@@ -800,12 +800,12 @@ class DeepSpeedEngine(Module):
data_parallel_world_size
=
data_parallel_world_size
,
data_parallel_rank
=
data_parallel_rank
)
def
train
(
self
):
def
train
(
self
,
mode
=
True
):
r
"""
"""
self
.
warn_unscaled_loss
=
True
self
.
module
.
train
()
self
.
module
.
train
(
mode
)
def
eval
(
self
):
r
"""
...
...
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