-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[TFLite] Support PRelu #4298
[TFLite] Support PRelu #4298
Conversation
Thanks @FrozenGene |
@FrozenGene
https://www.dropbox.com/s/lr9wmv0dminvd10/Screenshot%202019-11-12%2013.53.12.png?dl=0 https://www.dropbox.com/s/6jppn19hae2yzte/Screenshot%202019-11-12%2013.54.17.png?dl=0
|
PRELU docs says that H and W can be "shared". That is what we see in my custom tflite model. |
could you share your custom tflite model of prelu? Seems that we should reshape alpha tensor to 4D make share meet TVM requirement. |
I can not share the file unfortunately. I'll try to create similar tflite file to reproduce the issue. |
Ok. You could refer my unittest and see how the prelu is constructed, because tf doesn’t have prelu, tflite just recognize op pattern to produce prelu. Then we could see how to solve your model problem. |
Will test it. BTW the model is |
I tried the fix with |
As discuss forum topic: https://discuss.tvm.ai/t/missing-tflite-operators/3150/8, we want to have PRelu support in TFLite
@apivovarov