-
Notifications
You must be signed in to change notification settings - Fork 159
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
[luci] CircleReshape's dtype unknown after SubstitutePackToReshapePass #14096
Comments
Suggestions1. Add dtype to the node in
|
From my perspective, the second approach seems more appropriate, as it appears to be more generally applicable to other operations as well. However, I do have some concerns about potential issues that might arise from changing the order. @jinevening, @seanshpark, |
+1 for the second approach. |
I'm not sure second approach is OK :) for the meantime, my proposal is let this issue be opened, go with (1) with a comment. reshape_node->tensor(value_node);
// NOTE shape inference has issue without this. check issue #14096 for details.
reshape_node->dtype(value_node->dtype());
reshape_node->name(name + "/Reshape"); |
As far as I know, the roles of |
As I wrote, switch may cause other problem, which I don't know yet, and we need full testing. |
I remembered what we usually we have done with Passes. If the condition is not met, just return. That is, if shape inference fails from dtype` is not determined, just don't do anything and return. This will be (3). |
Problem
After
SubstitutePackToReshapePass
,Reshape
'sdtype
is unknown.And In
CircleShapeInferencePass
, An assertion occurred while checking the dtype of paddings in the pad operation.ONE/compiler/luci/service/src/CircleShapeInferenceHelper.cpp
Line 170 in 0b7b37a
How to reproduce
yamnet.zip
onecc -C yamnet.cfg -O1
Log
Related
The text was updated successfully, but these errors were encountered: