| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Tagging subscribers to this area: @dotnet/area-system-numerics-tensors |
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #107852 to release/9.0
/cc @michaelgsharp
Customer Impact
When users call Slice on a TensorSpan, if that slice is not contiguous or dense and then Reshape is called, it can result in the user getting an IndexOutOfRangeException or exposing memory that was initially hidden. Likewise, if the user calls SetSlice on a TensorSpan that is not contiguous or dense, it can result in the user setting bits that were originally hidden from the user. We should not allow this behavior and throw an ArgumentException when Reshape is called in those situations and make sure we set the bits correctly to not touch the hidden bits. See #106539, #106537, and #106535.
Regression
Testing
More automated testing was added to cover the case of non-normal strides combined with slicing. It was missed because its an edge case that wasn't initially thought about.
Risk
Low risk as this is the first time 'Tensor" is being released, its going out in preview state, and we have an end user testing things out as well.