-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Rewrite of System.Numerics.Tensors to allow for more code sharing, various correctness fixes, and stability improvements #114927
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
b4b1b2a
Refactor Tensor to be more reusable and validate appropriate state
tannergooding fa7461f
Handle Equals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrE…
tannergooding 60bdf20
Many implementations correctly swapped to new form. (#25)
michaelgsharp f84b134
more tensors updates (#26)
michaelgsharp 077c181
Resolve a few build failures
tannergooding 96e2ad4
Ensure SetSlice and ToString are working as expected
tannergooding f1b9583
Tensors lastfew (#27)
michaelgsharp c85f7ac
Merge remote-tracking branch 'dotnet/main' into tensors
tannergooding 70b6a86
Minor cleanup of the Tensor files
tannergooding d5b0e8e
Ensure that tensor tests are building
tannergooding a32450f
Resolving various build failures due to API compatibility
tannergooding 130b159
Ensure flattendLength is adjusted after the stride is set for that di…
tannergooding ccce86c
Ensure that we set linearLength if -1 is passed in when strides is empty
tannergooding 3c40b5c
Ensure that the first index is correct
tannergooding e182c94
Cleanup to ensure iteration and construction initializes correctly
tannergooding 95d74b6
Ensure that broadcasting is allowed to be in any stride position
tannergooding ec980e2
Have AreCompatible handle empty shapes
tannergooding 06fa711
Ensure IndexOutOfRangeException is thrown for invalid indexes
tannergooding c39fd85
Ensure that the stride is set to 0 when the length of a dimension is …
tannergooding fa0be0e
Fixing Broadcasting Loop (#29)
michaelgsharp 3f2032b
Merge remote-tracking branch 'dotnet/main' into tensors
tannergooding fd15e01
Ensure that minimumLinearLength is actually the minimum
tannergooding aaf9aae
Ensure the rented buffer is cleared
tannergooding 9a60357
Fix the AreCompatible checks
tannergooding 053a494
Tensor finishing (#30)
michaelgsharp eea881d
Merge remote-tracking branch 'dotnet/main' into tensors
tannergooding c6800b8
only2 tests left
michaelgsharp 2f2788a
Update src/libraries/System.Numerics.Tensors/src/System/Numerics/Tens…
tannergooding aa0e7c0
Update compatibility suppressions
tannergooding 1ecf899
transpose working
michaelgsharp 9608f5a
reverse working
michaelgsharp 798ea06
Merge branch 'main' into tensors
tannergooding ac449a0
Revert the unnecessary sln changes
tannergooding eb42165
Remove an unnecessary using
tannergooding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
155 changes: 96 additions & 59 deletions
155
src/libraries/System.Numerics.Tensors/ref/System.Numerics.Tensors.netcore.cs
Large diffs are not rendered by default.
Oops, something went wrong.
560 changes: 560 additions & 0 deletions
560
src/libraries/System.Numerics.Tensors/src/CompatibilitySuppressions.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: Is this clear enough message to explain the failure?
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.
The exceptions need some cleanup to improve the messages in general. I don't think we should block the PR on this though.