Skip to content

Made ConversionUtils more robust and cover more of the tensor dialect#3109

Merged
copybara-service[bot] merged 1 commit into
google:mainfrom
crockeea:conversionutils
Jun 24, 2026
Merged

Made ConversionUtils more robust and cover more of the tensor dialect#3109
copybara-service[bot] merged 1 commit into
google:mainfrom
crockeea:conversionutils

Conversation

@crockeea

Copy link
Copy Markdown
Collaborator
  • Added explicit uniform checks for unshaped tensors or tensors with a dynamic shape to robustly limit the coverage of these conversions. Note that ConvertAny still supports dynamic shapes, but it is the only one that does.
  • Added support for tensor.from_elements where the output shape is multi-dimensional; previously it only handled the case of a 1D output. Added a test for this case.
  • Added support for tensor.extract_slice via ConvertOffsetSizeStrideOp
  • Added support for tensor.insert_slice via ConvertOffsetSizeStrideOp
  • Added support for tensor.reshape

@google-cla

google-cla Bot commented Jun 23, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@crockeea

Copy link
Copy Markdown
Collaborator Author

Is CI using BuildBuddy? 42 minutes and counting to validate the PR.

@crockeea crockeea requested a review from j2kun June 23, 2026 22:39
@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Jun 24, 2026
@copybara-service copybara-service Bot merged commit a952c00 into google:main Jun 24, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants