[XLA] Do not use hex literal constants, this is only supported in c++17

PiperOrigin-RevId: 290863873
Change-Id: I2be7840220827acaaabe718d325f037c14c9c625
This commit is contained in:
George Karpenkov 2020-01-21 17:56:56 -08:00 committed by TensorFlower Gardener
parent 1a86c7bf3f
commit e0889b4b8e
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace {
class ArrayElementwiseOpTest : public ClientLibraryTestBase {
public:
ErrorSpec error_spec_{0.0001, 0.0001};
ErrorSpec strict_error_spec_{0x1p-48, 0x1p-48};
ErrorSpec strict_error_spec_{3.6e-15, 3.6e-15};
};
class ArrayElementwiseOpTestParamCount

View File

@ -183,7 +183,7 @@ XLA_TEST_F(ScalarComputationsTest, MulThreeScalarsF64) {
ConstantR0<double>(&builder, 0.5772156649015328));
ComputeAndCompareR0<double>(&builder, 4.929268367422896, {},
ErrorSpec{0x1p-48});
ErrorSpec{3.6e-15});
}
XLA_TEST_F(ScalarComputationsTest, MulTwoScalarsS32) {