-
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
[Relay][TensorFlow] Add support for SquaredDifference #3930
Conversation
I don't have a problem with BatchMatMul change, but what is the bug it fixes? And should other |
I was testing out a BERT model which was exported with I don't think we need to do this for each operator quite yet. This fix is just a more future-proof way of coding this logic. |
What happened if w/o |
Sorry, can you explain what you mean? |
@soiferj the tf converter works even without specifying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I see. I am not sure, I didn't try that out. However, we may want to think about not relaying on |
@soiferj if your bert model is working, it will be nice to add an end to end test case with that model. |
Agreed. I will work on adding that in another PR once I’ve verified everything looks ok after this change. |
It works, but it is very slow. Without shape information got from TF, Frontend will have to infer type for each new added node. For a model containing about 8000 nodes, it will take more than 1.5 hours to import a graph. |
@zhiics please help to manage this PR |
The change now looks good to me. @alexeyr @yongwww @lixiaoquan please take another look and https://docs.tvm.ai/contribute/code_review.html#approve-and-request-changes-explicitly |
* Add support for SquaredDifference and StopGradient; minor fix in BatchMatMul * Remove stopgradient change * Resolve PR comment * Dummy change to retrigger CI * dummy change to retrigger CI
* Add support for SquaredDifference and StopGradient; minor fix in BatchMatMul * Remove stopgradient change * Resolve PR comment * Dummy change to retrigger CI * dummy change to retrigger CI
* Add support for SquaredDifference and StopGradient; minor fix in BatchMatMul * Remove stopgradient change * Resolve PR comment * Dummy change to retrigger CI * dummy change to retrigger CI
Add support for SquaredDifference operator. Also include a minor bug fix for BatchMatMul.
@srkreddy1238 @alexeyr would you be able to take a look?