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

[release/9.0] Empty slice fix #107880

Merged
merged 5 commits into from
Sep 16, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 16, 2024

Backport of #107316 to release/9.0

/cc @michaelgsharp

Customer Impact

  • Customer reported
  • Found internally

Fixes #106536. When slicing an empty Tensor, you should be able to ask for .. and get back an empty tensor. This PR enables this behavior.

Regression

  • Yes
  • No

Testing

Added in automated testing around slicing empty Tensors. We did not have a test for that before but now we do.

Risk

Low risk. Tensor is going to be a preview release and was added in this 9.0 release.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-numerics-tensors
See info in area-owners.md if you want to be subscribed.

@artl93
Copy link
Contributor

artl93 commented Sep 16, 2024

@michaelgsharp, @ericstj - is this a behavioral breaking change from RC1?

@michaelgsharp
Copy link
Member

@artl93 in RC1 it would throw an error erroneously. So it is a behavioral change but its going from throwing an error (incorrectly) to not throwing an error (correctly) which should be fine.

@michaelgsharp
Copy link
Member

/ba-g The single test failure is a known test failure not related to these changes.

@ericstj ericstj merged commit c43d0e2 into release/9.0 Sep 16, 2024
83 of 88 checks passed
@michaelgsharp michaelgsharp deleted the backport/pr-107316-to-release/9.0 branch September 16, 2024 21:50
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.

3 participants