Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

modify the config bug about Automatic Model Pruning using NNI Tuners #3541

Merged
merged 3 commits into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en_US/Compression/AutoPruningUsingTuners.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Then, define a ``config`` file in YAML to automatically tuning model, pruning al
trialConcurrency: 1
trialGpuNumber: 0
tuner:
name: grid
name: GridSearch

The full example can be found :githublink:`here <examples/model_compress/pruning/config.yml>`

Expand Down
2 changes: 1 addition & 1 deletion examples/model_compress/pruning/basic_pruners_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,6 @@ def main(args):
print(params)
args.sparsity = params['sparsity']
args.pruner = params['pruner']
args.model = params['pruner']
args.model = params['model']

main(args)
2 changes: 1 addition & 1 deletion examples/model_compress/pruning/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ trialCommand: python3 basic_pruners_torch.py --nni
trialConcurrency: 1
trialGpuNumber: 0
tuner:
name: grid
name: GridSearch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you~ By the way, you can also modify the English document docs/en_US/Compression/AutoPruningUsingTuners.rst line 67.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok