-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Implement struct enumerator for Tensor<T> #46497
Implement struct enumerator for Tensor<T> #46497
Conversation
Added unit test for element enumeration. Fix issue dotnet#28391
…hancement-issue-28391
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @dotnet/ncl Issue DetailsThis fixes issue 28391.
|
Oh dear. The bot applied the wrong tag. It should be |
Tagging subscribers to this area: @eiriktsarpalis, @pgovind Issue DetailsThis fixes issue 28391.
|
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Günther Foidl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why github is asking me to review my own pull request. I left the names the same to be consistent with the rest of the file, but applied the this = default
suggested edit.
Okay, the runtime CI check failed with a "503 Service Not Available" result. I'm guessing this wasn't caused by the suggested changes. Gonna quickly close and reopen to try running them again. |
Now one of the tests seems to have crashed. Been running for ~6 hours. |
@eerhardt @danmosemsft do we need to put this through API review? |
This library hasn't been officially approved yet, nor has a stable version of the package been shipped. So my opinion is that we can iterate on this prototype library without bringing each change to API review. And then when we are happy with the whole shape, we bring the whole library to API review at once. |
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
Build just failed due to flaky test (issue #32805). Rerunning... |
@stephentoub I believe this is ready for you re-review when you have time. |
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/Tensor.cs
Outdated
Show resolved
Hide resolved
-Make Reset and Dispose public -Fix null ref bug with Reset -Added tests for Reset and Dispose
This fixes issue 28391.