Skip to content

Fix TensorPrimitives.IndexOfMaxMagnitude signed integer tie#128484

Open
lilinus wants to merge 2 commits into
dotnet:mainfrom
lilinus:fix-indexofminmax
Open

Fix TensorPrimitives.IndexOfMaxMagnitude signed integer tie#128484
lilinus wants to merge 2 commits into
dotnet:mainfrom
lilinus:fix-indexofminmax

Conversation

@lilinus
Copy link
Copy Markdown
Contributor

@lilinus lilinus commented May 22, 2026

Fixes #128478

I saw there are reported perf regressions for TensorPrimitives.IndexOfMax in #128088, so I understand if you can't take this PR to fix that (or revert #127454).

PR also includes:

  • Add coverage for fixed bug in IndexOf*Magnitude_Negative1LesserThanPositive1
  • Tighten asserts and don't avoid MinValue in IndexOf*Magnitude_AllLengths
  • Increase coverage in IndexOf*_Negative0LesserThanPositive0 to cover vectorized paths.
  • Ensure floating point tests for TensorPrimtivies are run for NFloat

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label May 22, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Numerics.Tensors community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TensorPrimitives.IndexOfMaxMagnitude signed integer magnitude tie bug

1 participant