Skip to content
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

Remove on_device_shape and logical_on_device_shape #5546

Merged
merged 6 commits into from
Sep 19, 2023

Conversation

will-cromar
Copy link
Collaborator

These were removed from the PJRT C API client recently in this commit: tensorflow/tensorflow@840633c

Instead, we can rebuild the shapes from the decomposed components. In the future, we should see if we can remove Shape from ComputationClient::Data entirely in favor of dimensions, layout, etc.

@will-cromar will-cromar added DO_NOT_MERGE_YET For PRs which cannot be merged, despite tests passing runtime labels Sep 6, 2023
Copy link
Collaborator

@alanwaketan alanwaketan left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@yeounoh yeounoh left a comment

Choose a reason for hiding this comment

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

LGTM

@will-cromar will-cromar changed the title [WIP] Remove on_device_shape and logical_on_device_shape Remove on_device_shape and logical_on_device_shape Sep 8, 2023
@will-cromar
Copy link
Collaborator Author

Once the openXLA change to add is_dynamic_dimension is submitted, I'll add the commit hash to the patch in this PR and mark it ready to submit.

@will-cromar will-cromar requested a review from JackCaoG September 8, 2023 20:58
@will-cromar
Copy link
Collaborator Author

The upstream commit merged: openxla/xla@6308dba

Added the hash to the patch in this commit. Let's wait until after we're done moving the OpenXLA pin to merge this (see #5592)

@will-cromar will-cromar removed the DO_NOT_MERGE_YET For PRs which cannot be merged, despite tests passing label Sep 15, 2023
@will-cromar will-cromar marked this pull request as ready for review September 15, 2023 21:34
@ManfeiBai
Copy link
Collaborator

Do we want this PR in 2.1 branch?

@will-cromar
Copy link
Collaborator Author

No. This is a risky change, so we should not backport it.

@will-cromar will-cromar merged commit dbb92c9 into master Sep 19, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants