Home
last modified time | relevance | path

Searched refs:RoundTripFpToString (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dutil_test.cc109 TEST(UtilTest, RoundTripFpToString) { in TEST() argument
110 EXPECT_EQ(RoundTripFpToString(std::numeric_limits<Eigen::half>::quiet_NaN()), in TEST()
112 EXPECT_EQ(RoundTripFpToString(-std::numeric_limits<Eigen::half>::quiet_NaN()), in TEST()
114 EXPECT_EQ(RoundTripFpToString( in TEST()
117 EXPECT_EQ(RoundTripFpToString( in TEST()
120 EXPECT_EQ(RoundTripFpToString(std::numeric_limits<float>::quiet_NaN()), in TEST()
122 EXPECT_EQ(RoundTripFpToString(-std::numeric_limits<float>::quiet_NaN()), in TEST()
124 EXPECT_EQ(RoundTripFpToString(std::numeric_limits<double>::quiet_NaN()), in TEST()
126 EXPECT_EQ(RoundTripFpToString(-std::numeric_limits<double>::quiet_NaN()), in TEST()
Dutil.cc113 string RoundTripFpToString(tensorflow::bfloat16 value) { in RoundTripFpToString() function
117 string RoundTripFpToString(Eigen::half value) { in RoundTripFpToString() function
121 string RoundTripFpToString(float value) { in RoundTripFpToString() function
127 string RoundTripFpToString(double value) { in RoundTripFpToString() function
Dutil.h377 string RoundTripFpToString(tensorflow::bfloat16 value);
380 string RoundTripFpToString(Eigen::half value);
383 string RoundTripFpToString(float value);
386 string RoundTripFpToString(double value);
Dliteral.cc996 return RoundTripFpToString(Get<half>(multi_index, shape_index)); in GetAsString()
998 return RoundTripFpToString(Get<float>(multi_index, shape_index)); in GetAsString()
1000 return RoundTripFpToString(Get<bfloat16>(multi_index, shape_index)); in GetAsString()
1002 return RoundTripFpToString(Get<double>(multi_index, shape_index)); in GetAsString()
1005 return StrCat("(", RoundTripFpToString(c.real()), ", ", in GetAsString()
1006 RoundTripFpToString(c.imag()), ")"); in GetAsString()
1010 return StrCat("(", RoundTripFpToString(c.real()), ", ", in GetAsString()
1011 RoundTripFpToString(c.imag()), ")"); in GetAsString()
Dliteral_comparison.cc111 StrCat(absl::Hex(ulhs)), RoundTripFpToString(lhs), lhs_double, in MakeBitwiseErrorStatus()
112 StrCat(absl::Hex(urhs)), RoundTripFpToString(rhs), rhs_double, in MakeBitwiseErrorStatus()