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

[Frontend,TOPI] Improve dynamism for BatchMatmul and Dense #7496

Merged
merged 17 commits into from
Mar 17, 2021

Conversation

monklof
Copy link
Contributor

@monklof monklof commented Feb 22, 2021

cc @kevinthesun @zhiics

Thanks for @comaniac 's advices, this is the merged pr for #7491 #7492 #7493 #7494

@monklof monklof changed the title [Frontend,TOPI] Improve dynamic for BatchMatmul and Dense [Frontend,TOPI] Improve dynamism for BatchMatmul and Dense Feb 22, 2021
Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

Also cc @kevinthesun @yongwww for checking the tensorflow frontend changes.

python/tvm/topi/nn/batch_matmul.py Outdated Show resolved Hide resolved
python/tvm/topi/nn/batch_matmul.py Outdated Show resolved Hide resolved
python/tvm/topi/cuda/dense.py Outdated Show resolved Hide resolved
python/tvm/topi/cuda/batch_matmul.py Outdated Show resolved Hide resolved
python/tvm/relay/frontend/tensorflow.py Outdated Show resolved Hide resolved
@comaniac comaniac added the status: need update need update based on feedbacks label Mar 2, 2021
Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

Also please add test cases to cover your changes.

python/tvm/relay/frontend/tensorflow.py Outdated Show resolved Hide resolved
python/tvm/topi/cuda/batch_matmul.py Show resolved Hide resolved
python/tvm/topi/cuda/dense.py Show resolved Hide resolved
@monklof
Copy link
Contributor Author

monklof commented Mar 17, 2021

Also please add test cases to cover your changes.

@comaniac Thanks a lot!

Test case has been added for the frontend's changes, and the existing test cases can hit the code changes in TOPI(dense and batch_matmul)

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@comaniac comaniac merged commit c871784 into apache:main Mar 17, 2021
@comaniac
Copy link
Contributor

Thanks @monklof

@comaniac comaniac removed status: need review status: need update need update based on feedbacks labels Mar 17, 2021
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
* [TOPI] Dense cuda schedule support dynamic dimension

* [TOPI] batch_matmul cublas te computation support dynamism

* [Frontend] tensorflow frontend: dynamic support for BatchMatmul

* [TOPI] nn batch_matmul te computation support dynamism

* fix CI

* Update python/tvm/topi/nn/batch_matmul.py

Co-authored-by: Cody Yu <[email protected]>

* Update python/tvm/topi/cuda/batch_matmul.py

Co-authored-by: Cody Yu <[email protected]>

* remove concat_dynamic_shape function

* update topi dense op integer checking

* fix ci

* Update python/tvm/relay/frontend/tensorflow.py

Co-authored-by: Cody Yu <[email protected]>

* Update batch_matmul.py

* [Frontend] add test for batch_matmul in dynamic shaped case

Co-authored-by: Cody Yu <[email protected]>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
* [TOPI] Dense cuda schedule support dynamic dimension

* [TOPI] batch_matmul cublas te computation support dynamism

* [Frontend] tensorflow frontend: dynamic support for BatchMatmul

* [TOPI] nn batch_matmul te computation support dynamism

* fix CI

* Update python/tvm/topi/nn/batch_matmul.py

Co-authored-by: Cody Yu <[email protected]>

* Update python/tvm/topi/cuda/batch_matmul.py

Co-authored-by: Cody Yu <[email protected]>

* remove concat_dynamic_shape function

* update topi dense op integer checking

* fix ci

* Update python/tvm/relay/frontend/tensorflow.py

Co-authored-by: Cody Yu <[email protected]>

* Update batch_matmul.py

* [Frontend] add test for batch_matmul in dynamic shaped case

Co-authored-by: Cody Yu <[email protected]>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants