Skip to content

Conversation

@Solaryee
Copy link
Contributor

@Solaryee Solaryee commented Apr 8, 2021

This PR is a patch for Modular TensorFlow Graph C API.

It removes global GrapplerItemMap. Optimizer API has changed from void (*optimize_func)(void*, TF_Buffer*, TF_Buffer*, TF_Status*); to void (*optimize_func)(void*, const TF_Buffer*, const TF_GrapplerItem*, TF_Buffer*, TF_Status*);

@google-ml-butler google-ml-butler bot added the size:M CL Change Size: Medium label Apr 8, 2021
@google-cla google-cla bot added the cla: yes label Apr 8, 2021
@Solaryee
Copy link
Contributor Author

Solaryee commented Apr 8, 2021

Hi @penpornk @ezhulenev, please help to have a review. Thanks!

Copy link
Member

@penpornk penpornk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! Could you please split them into two separate PRs? That way if one thing failed a test, the other wouldn't get reverted too. It would make it easier to debug as well.

The warning message PR got reverted because it broke an internal test. So if we simply bring it back it will get reverted again. I'll have to find out why first.

@Solaryee Solaryee changed the title [Graph C API] Updating warning messages && Remove GrapplerItemMap [Graph C API] Remove GrapplerItemMap Apr 8, 2021
@Solaryee
Copy link
Contributor Author

Solaryee commented Apr 8, 2021

OK. Now this PR is only targeting removing global GrapplerItemMap.

Copy link
Member

@penpornk penpornk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you again for the PR! :)

@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Apr 8, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 8, 2021
@gbaned gbaned self-assigned this Apr 8, 2021
@copybara-service copybara-service bot merged commit f6c24a2 into tensorflow:master Apr 8, 2021
@penpornk
Copy link
Member

penpornk commented Apr 8, 2021

@kulinseth FYI. We removed GrapplerItem map and just passed the GrapplerItem directly to the optimize function.

@kulinseth
Copy link
Contributor

@kulinseth FYI. We removed GrapplerItem map and just passed the GrapplerItem directly to the optimize function.

Thanks! for letting us know @penpornk

@kulinseth
Copy link
Contributor

Hi @ShengYang1 , thanks for the PR. Looks like this wasn't part of the v2.5 release.
I am curious why this didn't make it to 2.5 release? Thanks.

Kulin

@penpornk
Copy link
Member

That was my fault. I got feedback to remove the map about a week before the branch cut, but I was worried it could complicate our already tight PluggableDevice-related PR merge/test schedule. So I waited until after 2.5 branch cut. And since cherrypick was technically for bug fixes, I didn't cherrypick it in. Sorry for making diverge code paths! :'(

@kulinseth
Copy link
Contributor

That was my fault. I got feedback to remove the map about a week before the branch cut, but I was worried it could complicate our already tight PluggableDevice-related PR merge/test schedule. So I waited until after 2.5 branch cut. And since cherrypick was technically for bug fixes, I didn't cherrypick it in. Sorry for making diverge code paths! :'(

No issues, thanks for the clarification @penpornk . The only reason I brought up was that since there is an API change, it won't be a breaking change for v2.5 but for TF master we would at somepoint adopt this new change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull PR ready for merge process size:M CL Change Size: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants