Skip to content

Remove on_device_shape and logical_on_device_shape#5546

Merged
will-cromar merged 6 commits intomasterfrom
wcromar/no-shapes
Sep 19, 2023
Merged

Remove on_device_shape and logical_on_device_shape#5546
will-cromar merged 6 commits intomasterfrom
wcromar/no-shapes

Conversation

@will-cromar
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 marked this pull request as ready for review September 15, 2023 21:34
@ManfeiBai
Copy link
Copy Markdown
Collaborator

Do we want this PR in 2.1 branch?

@will-cromar
Copy link
Copy Markdown
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
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