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

[PyTorch] not implemented: ['quantized::leaky_relu'] #11451

Open
wangzhenyu32 opened this issue May 25, 2022 · 4 comments
Open

[PyTorch] not implemented: ['quantized::leaky_relu'] #11451

wangzhenyu32 opened this issue May 25, 2022 · 4 comments
Labels
frontend:pytorch python/tvm/relay/frontend/torch status: help wanted

Comments

@wangzhenyu32
Copy link

wangzhenyu32 commented May 25, 2022

Expected behavior

expect to support qunatize leaky_relu when using relay.frontend.from_pytorch import a qat model

Environment

tvm branch main for x86

Steps to reproduce

mod, params = relay.frontend.from_pytorch(jit_model, input_shapes)

File "/root/test/tvm/python/tvm/relay/frontend/pytorch.py", line 4070, in from_pytorch
converter.report_missing_conversion(op_names)
File "/root/test/tvm/python/tvm/relay/frontend/pytorch.py", line 3275, in report_missing_conversion
raise NotImplementedError(msg)
NotImplementedError: The following operators are not implemented: ['quantized::leaky_relu']

cc @yelite

@masahi masahi changed the title [Bug] not implemented: ['quantized::leaky_relu'] [PyTorch] not implemented: ['quantized::leaky_relu'] May 25, 2022
@petuca
Copy link
Contributor

petuca commented Jun 7, 2022

Hi,

Can you provide us a reproduction for this problem? Do you have your own model for reproducing?

@wangzhenyu32

@wangzhenyu32
Copy link
Author

Hi,

Can you provide us a reproduction for this problem? Do you have your own model for reproducing?

@wangzhenyu32

Reproduction for this problem:
step1: train a model use pytorch include a leaky_relu activation func.
step2: qat for the trained model.
step3: import the qat model to tvm frontend
So sorry, I can't provide a model to test, because some reasons.

@alejandroarmas
Copy link

@petuca @yuanfz98 Hello would this be a good first contribution to make? Thank you!

@petuca
Copy link
Contributor

petuca commented Jul 4, 2022

Hi,

This issue is already solved in PR #11729.

@alejandroarmas

@areusch areusch added the needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it label Oct 19, 2022
@hpanda-naut hpanda-naut added frontend:pytorch python/tvm/relay/frontend/torch and removed needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it labels Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend:pytorch python/tvm/relay/frontend/torch status: help wanted
Projects
None yet
Development

No branches or pull requests

6 participants