Skip to content

Conversation

@github-actions
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.

@ghost ghost added the area-System.Numerics label Sep 17, 2024
@dotnet-policy-service
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
@carlossanlop carlossanlop deleted the backport/pr-107886-to-release/9.0-rc2 branch September 19, 2024 01:55
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Numerics Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants