Commit 655b2afc authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Rollforward of rollback:

Reinstate the use of integral-exponent power function MathUtil::IPow, but make sure to use a floating point base, so as to compute the result using floating point arithmetic. This behaviour is equivalent to, but faster than, std::pow.

Note that care must be taken to convert the base to double, which we effect by providing an explicit template type argument for MathUtil::IPow.

PiperOrigin-RevId: 211290304
parent caf4645b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment