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-rc2] Replace VectorXx.Exp's edge case fallback with scalar processing #107942

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

github-actions[bot]
Copy link
Contributor

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

Backport of #107886 to release/9.0-rc2

/cc @stephentoub

Customer Impact

  • Customer reported
  • Found internally

Certain edge case double values passed to Vector64/128/256/512 and TensorPrimitives.Exp produce the wrong result, e.g. negative infinity instead of a value close to 0. There's a special path for handling such edge cases while still vectorizing, and that vectorized result can be wrong. The fix is to handle those edge cases by falling back to scalar processing for the vector containing the edge case.

Regression

  • Yes
  • No

Testing

Added new tests for the edge cases.

Risk

Low. It's falling back to the scalar implementation when such values are encountered.

Copy link
Contributor

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

@stephentoub stephentoub added the Servicing-consider Issue for next servicing release review label Sep 18, 2024
@stephentoub stephentoub added this to the 9.0.0 milestone Sep 18, 2024
@stephentoub
Copy link
Member

cc: @jeffhandley, @artl93

@jeffhandley jeffhandley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 18, 2024
@carlossanlop carlossanlop merged commit 15e4423 into release/9.0-rc2 Sep 19, 2024
149 of 154 checks passed
@carlossanlop carlossanlop deleted the backport/pr-107886-to-release/9.0-rc2 branch September 19, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Numerics Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants