Remove transpose from reshape builder#22901
Conversation
49b54f9 to
eb35b77
Compare
|
The tensorflow CI failure is because of no storage on device, and is not related to this PR. |
|
If this is changed, the operation semantics should be changed as well: In general I think it is probably a good idea to change this, as for stablehlo we already don't allow the implicit transpose: |
Can you tell me where the source for this is? |
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.
eb35b77 to
b250412
Compare
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
|
Are there internal failures with this PR? Let me know if there is anything I can do to help merge this. |
|
There were internal adjustments needed. I did the last ones yesterday, but I need approval for them and unfortunately so far I didn't get it. Hopefully I can merge it either later today or tomorrow. |
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
Imported from GitHub PR #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: -- b44dc31 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. -- a7100cf by Shraiysh Vaishay <svaishay@nvidia.com>: Fix unrelated clang-format issues in xla/python/ops.cc -- b250412 by Shraiysh Vaishay <svaishay@nvidia.com>: Fix semantics doc Merging this change closes #22901 FUTURE_COPYBARA_INTEGRATE_REVIEW=#22901 from shraiysh:fix_reshape_and_shape_inference b250412 PiperOrigin-RevId: 730737886
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 PiperOrigin-RevId: 730737886
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
I need to rewrite reshape usage according to openxla/xla#22901 and handle some breaking xla::ifrt changes.
I need to rewrite reshape usage according to openxla/xla#22901 and handle some breaking xla::ifrt changes. I also need to force HLO printing to use the Default (long) format due to https://github.com/openxla/xla/pull/22614/files
Reshape builder unnecessarily accepts two arguments:
dimensionswhich permutation of the layoyt of the shape.new_sizeswhich 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.