Skip to content
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

[AutoScheduler] Add winograd support in tuning networks #6877

Merged
merged 5 commits into from Nov 12, 2020

Conversation

merrymercy
Copy link
Member

This PR adds the Winograd support for NHWC layout.

Now it is only enabled for GPU backend, but the CPU backend uses the same compute declaration. I will enable it in later PRs.

cc @jcf94 @FrozenGene @comaniac

python/tvm/relay/op/strategy/cuda.py Outdated Show resolved Hide resolved
python/tvm/relay/op/strategy/cuda.py Outdated Show resolved Hide resolved
input_tile[r_a][r_b][p][ci] * B[r_a][eps] * B[r_b][nu], axis=[r_a, r_b]
),
name="data_pack",
attrs={"auto_scheduler_simplify_const_tensor_indices": ["eps", "nu", "r_a", "r_b"]},
Copy link
Member

Choose a reason for hiding this comment

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

We could add one comment what the attribute is to do and why we need this for auto scheduler

python/tvm/relay/op/strategy/cuda.py Outdated Show resolved Hide resolved
@merrymercy merrymercy dismissed comaniac’s stale review November 12, 2020 12:58

Comments are addressed

@merrymercy merrymercy merged commit 1fbe174 into apache:main Nov 12, 2020
@merrymercy merrymercy deleted the pr-winograd branch November 12, 2020 12:59
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 2, 2020
* add winograd in auto-scheduler

* trigger CI

* address comments

* fix tests

* fix test
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 4, 2020
* add winograd in auto-scheduler

* trigger CI

* address comments

* fix tests

* fix test
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Dec 4, 2020
* add winograd in auto-scheduler

* trigger CI

* address comments

* fix tests

* fix test
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.

None yet

4 participants