Searched refs:IsAllFloat (Results 1 – 5 of 5) sorted by relevance
564 TEST_F(LiteralUtilTest, IsAllFloat) { in TEST_F() argument566 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(false).IsAllFloat(0)); in TEST_F()567 EXPECT_FALSE(LiteralUtil::CreateR0<int8_t>(0).IsAllFloat(0)); in TEST_F()568 EXPECT_FALSE(LiteralUtil::CreateR0<uint8_t>(0).IsAllFloat(0)); in TEST_F()569 EXPECT_FALSE(LiteralUtil::CreateR0<int>(0).IsAllFloat(0)); in TEST_F()571 EXPECT_TRUE(LiteralUtil::CreateR0<float>(0).IsAllFloat(0)); in TEST_F()572 EXPECT_TRUE(LiteralUtil::CreateR0<float>(.5).IsAllFloat(.5)); in TEST_F()573 EXPECT_TRUE(LiteralUtil::CreateR0<float>(-.5).IsAllFloat(-.5)); in TEST_F()574 EXPECT_FALSE(LiteralUtil::CreateR0<float>(-.5).IsAllFloat(-.49)); in TEST_F()576 LiteralUtil::CreateR2<float>({{0, 0, 0}, {0, .1, 0}}).IsAllFloat(0)); in TEST_F()[all …]
240 bool IsAllFloat(float value) const;
2001 return IsAllFloat(value); in IsAll()2047 bool LiteralBase::IsAllFloat(float value) const { in IsAllFloat() function in xla::LiteralBase
63 operand->literal().IsAllFloat(value)) { in IsFPLiteralWithValue()
1786 EXPECT_TRUE(divisor->literal().IsAllFloat(2)); in TEST_F()