-
Notifications
You must be signed in to change notification settings - Fork 75k
[Grappler] Improve HoistCWiseUnaryChainsStage to support Reshape #42574
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
[Grappler] Improve HoistCWiseUnaryChainsStage to support Reshape #42574
Conversation
|
|
||
| Status AddReshapes(const PortNodeMap& reshapes, NodeDef* root_node) { | ||
| for (auto link : reshapes) { | ||
| AddReshape(link.second, root_node, link.first); |
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.
Check return status here. you can use the TF_RETURN_IF_ERROR macro.
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.
done
|
@xinan-jiang Can you please check @rmlarsen's comments and keep us posted ? Thanks! |
|
@xinan-jiang Can you please check @rmlarsen's comment and resolve conflicts? Thanks! |
|
@gbaned I am working on this. |
|
@xinan-jiang Can you please resolve conflicts? Thanks! |
f5def59 to
00383fb
Compare
|
@ezhulenev @rthadur help to review it. |
|
@gbaned I could not see the details of the fail test. Does it block the merge work? |
@xinan-jiang This is waiting for internal approval, once done it will be processed to merge. Thanks! |
|
I'm afraid this had to be rolled back since it broke tests in the lingvo project. It still seems like the rewrite violates some graph invariants. |
It continues the issue #40542