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

[OPENCL][TEXTURE] Test case enhancements and fixes for RPC #13408

Merged
merged 3 commits into from
Nov 19, 2022

Conversation

srkreddy1238
Copy link
Contributor

RPC execution fails some times when opened multiple times per test case. Making remote object initialized from pytest session instead.

Network test cases added.

dtypes enhanced to support multiple inputs.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Nov 16, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

RPC execution fails some times when opened multiple times per test case.
Making remote object initialized from pytest session instead.

Network test cases added.

dtypes enhanced to support multiple inputs.
Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

Good improvements! Thank you. One question

@@ -1549,7 +1549,7 @@ def convert_gather(self, op):
assert axis < data_dim, "Axis out of bounds"

if self.has_expr(indices.tensor_idx):
indices_expr = self.get_expr(indices.tensor_idx)
indices_expr = _op.cast(self.get_expr(indices.tensor_idx), "int32")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need this _op.cast?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was a bug I encountered while importing other tflite models.

Those models not added here as they are time consuming, but planning to add them to benchmarking scripts.

Copy link
Contributor

Choose a reason for hiding this comment

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

@leandron, @AndrewZhaoLuo, @masahi I have doubts, should the test be added for this change or not?
Other changes LGTM.

Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

LGTM

@junrushao junrushao merged commit 1ff6e99 into apache:main Nov 19, 2022
@junrushao
Copy link
Member

I'm not 100% sure, but seems like since the merge of the PR, the testcase below consistently fails for some reason:

Test / unittest: GPU 2 of 3 / test_mobilenet_v1_fp32[opencl -device=adreno] - ctypes.tests.python.relay.opencl_texture.test_network

i can submit a PR to temporarily skip the test, but would you guys mind taking a look?

@junrushao
Copy link
Member

junrushao commented Nov 19, 2022

xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
)

RPC execution fails some times when opened multiple times per test case.
Making remote object initialized from pytest session instead.

Network test cases added.

dtypes enhanced to support multiple inputs.

Co-authored-by: Siva Rama Krishna Reddy B <sivb@blr-ubuntu-ripper.qualcomm.com>
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