Skip to content

Conversation

@FrozenGene
Copy link
Member

@FrozenGene FrozenGene commented Jan 14, 2019

This is the follow up #2345.

@merrymercy please help to review.

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
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member

Choose a reason for hiding this comment

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

yes.

# 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':
Copy link
Member

@merrymercy merrymercy Jan 14, 2019

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

Copy link
Member Author

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.

Copy link
Member

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')

Copy link
Member Author

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.

Copy link
Member Author

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?

@merrymercy merrymercy merged commit dfb101a into apache:master Jan 15, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
…pache#2427)

* [Doc][Tutorial] Add the instructions how to use contrib_spatial_pack

* Update the code according suggestions
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
…pache#2427)

* [Doc][Tutorial] Add the instructions how to use contrib_spatial_pack

* Update the code according suggestions
@FrozenGene FrozenGene deleted the arm_cpu_depthwise_convolution_doc branch September 10, 2019 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants