-
-
Notifications
You must be signed in to change notification settings - Fork 655
[create_supervised_trainer] add automatic mixed precision #1589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sdesrozis
merged 54 commits into
pytorch:master
from
ydcjeff:engine/create_supervised_trainer
Feb 21, 2021
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
5ad0e48
amp init
621850f
docs complete
8ec807b
add tests
05864d6
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
8aa972a
unscale_ + clip_grad_norm_, move checks to private func, more edge ca…
0e1c387
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
8f1280a
scaler must be provided by user and its optional
7cba2a3
full docstring, on_cuda_amp test
599b20d
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
afce317
Merge branch 'master' into engine/create_supervised_trainer
sdesrozis e113e46
Merge branch 'engine/create_supervised_trainer' of https://github.com…
c475a56
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
eeab791
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
2a125f2
extract into 4 functions for normal, amp, apex and tpu training
a79aae9
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
f7d7ca7
explicit training step, independent mode
1b5f11c
mypy fix
0096942
fix(tests): pytest.raises checks with match, skipif < 1.6.0
1d1bbf3
fix(tests): align tests name, coverage append in tpu ci
48c3539
fix: remove ununsed amp import
cef8078
fix: docstring with default values, more tests, code review suggestions
cb1cd8f
fix(docs): update function names
96727d8
fix: docstring from code review
43bf0bb
fix: engine state only has attribute scaler if scaler is only True
ea8185a
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
6ca8742
Merge branch 'master' into engine/create_supervised_trainer
sdesrozis 358fde0
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
01e30cd
Merge branch 'engine/create_supervised_trainer' of https://github.com…
588a44f
fix: address code review
173cd09
fix: create scaler or None in _check_arg
039a38f
fix: no return for scaler in supervised_training_step_amp
3a16519
Merge branch 'master' into engine/create_supervised_trainer
sdesrozis ed36d25
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
4a95c3b
Merge branch 'master' into engine/create_supervised_trainer
sdesrozis 707f34d
Merge branch 'engine/create_supervised_trainer' of https://github.com…
29650b2
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
a80fc02
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
b32413d
fix: gpu tests for apex
a2bd32c
fix: gpu tests for apex and amp
a0a32c7
Merge branch 'master' into engine/create_supervised_trainer
vfdev-5 412e9d3
chore: add more tests for coverage
ea877f7
fix: state only has scaler attribute if True
9f71a1a
fix: use prefix for scaler
c8d788a
Merge remote-tracking branch 'upstream/master' into engine/create_sup…
4b05cc1
Apply suggestions from code review
5d3175d
Merge branch 'engine/create_supervised_trainer' of https://github.com…
f5d0d31
Merge branch 'master' into engine/create_supervised_trainer
bbc450b
Merge branch 'engine/create_supervised_trainer' of https://github.com…
4387e32
fix: skip apex tests if apex is not installed
935c852
fix: skip apex error test if apex
832564f
fix: ImportError instead of ModuleNotFoundError
dbe7a3d
fix(docs): no device tpu in gpu functions and vice versa
e4681d8
fix: raise an error instead of warn for invalid scaler and amp_mode
c8fcae4
Merge branch 'master' into engine/create_supervised_trainer
vfdev-5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.