Skip to content

Multiplication by max fp64 is not elementwise #37116

@joelberkeley

Description

@joelberkeley

On the CPU runtime, multiplying this array

[0.20099818632866118, 0.5067824359585911, 0.9694182218020597, -0.9592309562855535, 0.3099884705960516, -0.888345123577424, 0.3422581826548319, -0.07179653823829113, 0.010391347657845218, 0.7492772695497909]

by max fp64 1.7976931348623157e308 (from APFloat::getLargest) yields infinities. Meanwhile multiplying just the first element yields 3.6133305968281075e307.

I have not tried other runtimes.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions