This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Retiarii] add validation in base trainers #3184
Merged
+92
−59
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
58de5a3
cross-graph optimization: input dedup
hzhua 8022ab8
nni integration test of cross-graph optimization
hzhua 510f572
update cross-graph ut
hzhua 1b60074
Merge branch 'dev-retiarii' into dev-retiarii
hzhua a0f7d09
sovle merge conflict
hzhua 8d04404
Merge remote-tracking branch 'upstream/dev-retiarii' into dev-retiarii
hzhua 4124371
fix inconsistent implementation with upstream of new code converter
hzhua a82825a
remove duplicated __hash__ in nni.retiarii.graph
hzhua c93c4f3
remove bypass optimization
hzhua b1de4be
use __name__ in CGOExecutionEngine logger
hzhua 9dfacaa
Merge remote-tracking branch 'upstream/dev-retiarii' into dev-retiarii
hzhua 21eb936
add validation in PyTorchMultiModelTrainer
hzhua ae41b3a
add validation in PyTorchImageClassificationTrainer
hzhua 6752a2e
Merge remote-tracking branch 'upstream/dev-retiarii' into dev-retiarii
hzhua 2d4bbda
format file
hzhua f6328d6
format file
hzhua 2033846
remove unused training_step and validation_step in PyTorchMultiModelT…
hzhua fbf6e19
remove todo: add val_data_loader
hzhua 501ad90
format
hzhua a31b0db
format
hzhua 67b3a85
Merge remote-tracking branch 'upstream/dev-retiarii' into dev-retiarii
hzhua c0a6ea0
format
hzhua b1e2751
Merge remote-tracking branch 'upstream/dev-retiarii' into dev-retiarii
hzhua 6aba977
format
hzhua dd0017b
fix pylint
hzhua ba9c00f
fix pylint
hzhua 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest using
self.device
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In MultiModel, different model's input may need to be placed on different devices (called in _train). Currently, the trainer just sets one GPU per model in hard-code.
BTW, train_step and validation_step are not used in PyTorchImageClassificationTrainer. Removed.