-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Doc][Tutorial] Add the instructions how to use contrib_spatial_pack #2427
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
[Doc][Tutorial] Add the instructions how to use contrib_spatial_pack #2427
Conversation
tutorials/autotvm/tune_nnvm_arm.py
Outdated
| for i, tsk in enumerate(reversed(tasks)): | ||
| prefix = "[Task %2d/%2d] " % (i+1, len(tasks)) | ||
|
|
||
| # if we want to use spatial pack for depthwise convolution |
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.
can we move this after the if block of try_winograd?
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.
like 'try_winograd' for loop?
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.
yes.
tutorials/autotvm/tune_nnvm_arm.py
Outdated
| # create tuner | ||
| if tuner == 'xgb' or tuner == 'xgb-rank': | ||
| tuner_obj = XGBTuner(tsk, loss_type='rank') | ||
| if try_spatial_pack_depthwise and tsk.name == 'topi_nn_depthwise_conv2d_nchw': |
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.
merge this if into the above one
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.
if we do like try_winograd for loop, I can not think of how to merge this in try_spatial_pack_depthwise for loop. Because we will init tunner in this loop.
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.
We can do like
if try_spatial_pack_depthwise:
tuner = 'xgb_knob'
...
elif tuner == 'xgb_knob':
tuner_obj = XGBTuner(tsk, loss_type='rank', feature_type='knob')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.
Thanks. I understand your meaning now.
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.
Have applied your suggestions. @merrymercy could you help review again?
…pache#2427) * [Doc][Tutorial] Add the instructions how to use contrib_spatial_pack * Update the code according suggestions
…pache#2427) * [Doc][Tutorial] Add the instructions how to use contrib_spatial_pack * Update the code according suggestions
This is the follow up #2345.
@merrymercy please help to review.