Skip to content

PR #22901: Remove transpose from reshape builder#88004

Merged
copybara-service[bot] merged 1 commit intomasterfrom
exported_pr_730737886
Feb 28, 2025
Merged

PR #22901: Remove transpose from reshape builder#88004
copybara-service[bot] merged 1 commit intomasterfrom
exported_pr_730737886

Conversation

@copybara-service
Copy link
Copy Markdown

PR #22901: Remove transpose from reshape builder

Imported from GitHub PR openxla/xla#22901

Reshape builder unnecessarily accepts two arguments:

  1. dimensions which permutation of the layoyt of the shape.
  2. new_sizes which are the new dimensions of the shape.

This is confusing, and the we can simply remove the support for permutation of layout - as it is just a transpose and such a transpose can be easily constructed wherever required.
Copybara import of the project:

--
b44dc317188053cd51b7af4e90598ba357ba1197 by Shraiysh Vaishay svaishay@nvidia.com:

Remove transpose from reshape builder

Reshape builder unnecessarily accepts two arguments:

  1. dimensions which is the "layout" of the shape.
  2. new_sizes which is the "dimensions" of the shape.

This is confusing, and the we can simply remove the support for
layout - as it is just a transpose and such a transpose can be
easily constructed wherever required.

--
a7100cfc2185f5b8fd9dcf6dfa52c221b195021c by Shraiysh Vaishay svaishay@nvidia.com:

Fix unrelated clang-format issues in xla/python/ops.cc

--
b25041292522834a544b2c7c463909fc576c4ba9 by Shraiysh Vaishay svaishay@nvidia.com:

Fix semantics doc

Merging this change closes #22901

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#22901 from shraiysh:fix_reshape_and_shape_inference b25041292522834a544b2c7c463909fc576c4ba9

@copybara-service copybara-service Bot force-pushed the exported_pr_730737886 branch 8 times, most recently from d0377d9 to a390f89 Compare February 28, 2025 11:19
Imported from GitHub PR openxla/xla#22901

Reshape builder unnecessarily accepts two arguments:

 1. `dimensions` which permutation of the  layoyt of the shape.
 2. `new_sizes` which are the new dimensions of the shape.

This is confusing, and the we can simply remove the support for permutation of layout - as it is just a transpose and such a transpose can be easily constructed wherever required.
Copybara import of the project:

--
b44dc317188053cd51b7af4e90598ba357ba1197 by Shraiysh Vaishay <svaishay@nvidia.com>:

Remove transpose from reshape builder

Reshape builder unnecessarily accepts two arguments:

 1. `dimensions` which is the "layout" of the shape.
 2. `new_sizes` which is the "dimensions" of the shape.

This is confusing, and the we can simply remove the support for
layout - as it is just a transpose and such a transpose can be
easily constructed wherever required.

--
a7100cfc2185f5b8fd9dcf6dfa52c221b195021c by Shraiysh Vaishay <svaishay@nvidia.com>:

Fix unrelated clang-format issues in xla/python/ops.cc

--
b25041292522834a544b2c7c463909fc576c4ba9 by Shraiysh Vaishay <svaishay@nvidia.com>:

Fix semantics doc

Merging this change closes #22901

PiperOrigin-RevId: 732082186
@copybara-service copybara-service Bot force-pushed the exported_pr_730737886 branch from a390f89 to 12c51d1 Compare February 28, 2025 12:12
@copybara-service copybara-service Bot closed this Feb 28, 2025
@copybara-service copybara-service Bot merged commit 12c51d1 into master Feb 28, 2025
@copybara-service copybara-service Bot deleted the exported_pr_730737886 branch February 28, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We have removed this restriction. Please check out the code at head, or in the upcoming 1.4 RC. Please reopen if there are issues with it.

1 participant