Home
last modified time | relevance | path

Searched refs:IsAll (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dliteral_test.cc492 EXPECT_FALSE(tuple.IsAll(0)); in TEST_F()
493 EXPECT_FALSE(tuple.IsAll(1)); in TEST_F()
506 TEST_F(LiteralUtilTest, IsAll) { in TEST_F() argument
507 EXPECT_TRUE(LiteralUtil::CreateR0<bool>(false).IsAll(0)); in TEST_F()
508 EXPECT_TRUE(LiteralUtil::CreateR0<bool>(true).IsAll(1)); in TEST_F()
509 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(false).IsAll(1)); in TEST_F()
510 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(false).IsAll(2)); in TEST_F()
511 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(true).IsAll(0)); in TEST_F()
512 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(true).IsAll(2)); in TEST_F()
513 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(true).IsAll(-1)); in TEST_F()
[all …]
Dliteral.h207 bool IsAll(int8 value) const;
Dliteral.cc1723 bool LiteralBase::IsAll(int8 value) const { in IsAll() function in xla::LiteralBase
/external/tensorflow/tensorflow/compiler/xla/service/
Dalgebraic_simplifier.cc74 bool IsAll(const HloInstruction* op, int8 value) { in IsAll() function
77 return IsAll(op->operand(0), value); in IsAll()
79 return op->literal().IsAll(value); in IsAll()
807 if (IsAll(rhs, 0) && ReplaceInstructionIfSameShape(add, lhs)) { in HandleAdd()
812 if (IsAll(lhs, 0) && ReplaceInstructionIfSameShape(add, rhs)) { in HandleAdd()
1123 if (IsAll(rhs, 1) && ReplaceInstructionIfSameShape(logical_and, lhs)) { in HandleAnd()
1129 if (IsAll(lhs, 1) && ReplaceInstructionIfSameShape(logical_and, rhs)) { in HandleAnd()
1137 if (IsAll(rhs, 0) && ReplaceInstructionIfSameShape(logical_and, rhs)) { in HandleAnd()
1144 if (IsAll(lhs, 0) && ReplaceInstructionIfSameShape(logical_and, lhs)) { in HandleAnd()
1428 if (IsAll(rhs, 0) && ReplaceInstructionIfSameShape(sub, lhs)) { in HandleSubtract()
[all …]
Dwhile_loop_simplifier.cc1011 if (!trip_counter && constant->literal().IsAll(1) && in TryMergeInductionVariables()
1013 while_init->operand(i)->literal().IsAll(0)) { in TryMergeInductionVariables()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dif_while_utils.cc52 all_values_are_static = literal.IsAll(0); in ConvertCompileTimeConstArgumentsToConst()
/external/tensorflow/tensorflow/core/grappler/
Dop_types.h27 bool IsAll(const NodeDef& node);
Dop_types.cc43 bool IsAll(const NodeDef& node) { return node.op() == "All"; } in IsAll() function
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dlayout_optimizer.cc321 IsMin(node) || IsAll(node) || IsAny(node); in IsReduceOp()
Dgeneric_layout_optimizer_transposer.cc2103 IsMin(node) || IsAll(node) || IsAny(node); in IsReduceOp()
Dconstant_folding.cc2817 } else if (IsAny(*node) || IsAll(*node)) { in ReplaceReductionWithIdentity()