Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/
Dliteral_test.cc499 EXPECT_FALSE(tuple.IsAll(0)); in TEST_F()
500 EXPECT_FALSE(tuple.IsAll(1)); in TEST_F()
513 TEST_F(LiteralUtilTest, IsAll) { in TEST_F() argument
514 EXPECT_TRUE(LiteralUtil::CreateR0<bool>(false).IsAll(0)); in TEST_F()
515 EXPECT_TRUE(LiteralUtil::CreateR0<bool>(true).IsAll(1)); in TEST_F()
516 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(false).IsAll(1)); in TEST_F()
517 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(false).IsAll(2)); in TEST_F()
518 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(true).IsAll(0)); in TEST_F()
519 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(true).IsAll(2)); in TEST_F()
520 EXPECT_FALSE(LiteralUtil::CreateR0<bool>(true).IsAll(-1)); in TEST_F()
[all …]
Dliteral.cc1933 bool Literal::Piece::IsAll(const Literal& scalar) const { in IsAll() function in xla::Literal::Piece
1991 bool LiteralBase::IsAll(const Literal& scalar) const { in IsAll() function in xla::LiteralBase
1992 return root_piece().IsAll(scalar); in IsAll()
1995 bool LiteralBase::IsAll(int8_t value) const { in IsAll() function in xla::LiteralBase
2044 return root_piece().IsAll(scalar); in IsAll()
2069 return root_piece().IsAll(scalar); in IsAllFloat()
2088 return root_piece().IsAll(scalar); in IsAllComplex()
2104 return IsAll(first.Reshape({}).ValueOrDie()); in IsAllFirst()
Dliteral.h215 bool IsAll(const Literal& scalar) const;
228 bool IsAll(int8_t value) const;
607 bool IsAll(const Literal& scalar) const;
/external/tensorflow/tensorflow/compiler/xla/service/
Dalgebraic_simplifier.cc75 bool IsAll(const HloInstruction* op, int8_t value) { in IsAll() function
78 return IsAll(op->operand(0), value); in IsAll()
80 return op->literal().IsAll(value); in IsAll()
86 bool IsAll(const HloInstruction* op, const Literal& scalar) { in IsAll() function
90 return IsAll(op->operand(0), scalar); in IsAll()
92 return op->literal().IsAll(scalar); in IsAll()
689 if (IsAll(rhs, 0) && ReplaceInstructionIfCompatible(add, lhs)) { in HandleAdd()
694 if (IsAll(lhs, 0) && ReplaceInstructionIfCompatible(add, rhs)) { in HandleAdd()
1010 if (IsAll(rhs, 1) && ReplaceInstructionIfCompatible(logical_and, lhs)) { in HandleAnd()
1016 if (IsAll(lhs, 1) && ReplaceInstructionIfCompatible(logical_and, rhs)) { in HandleAnd()
[all …]
Dwhile_loop_simplifier.cc1158 if (!trip_counter && constant->literal().IsAll(1) && in TryMergeInductionVariables()
1160 while_init->operand(i)->literal().IsAll(0)) { in TryMergeInductionVariables()
Dhlo_instructions.cc1519 if (literal().IsAll(0)) { in OperandsToStringWithCanonicalNameMap()
1522 if (literal().IsAll(1)) { in OperandsToStringWithCanonicalNameMap()
/external/tensorflow/tensorflow/compiler/xla/client/
Dvalue_inference.h53 bool AllValid() { return mask_.IsAll(0); } in AllValid()
Dvalue_inference.cc1049 all_operands_values_static &= operands[i].IsAll(0); in AnalyzeIsDynamic()
1065 bool all_values_static = operands[index].IsAll(0); in AnalyzeIsDynamic()
1072 bool all_values_static = operands[i].IsAll(0); in AnalyzeIsDynamic()
1086 operands, [](Literal& operand) { return !operand.IsAll(0); }); in AnalyzeIsDynamic()
1099 operands, [](Literal& operand) { return !operand.IsAll(0); }); in AnalyzeIsDynamic()
1793 if (mask.IsAll(1)) { in AnalyzeConstant()
1808 if (mask.IsAll(1)) { in AnalyzeConstant()
1823 if (mask.IsAll(1)) { in AnalyzeConstant()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dif_while_utils.cc58 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/ir/
Dtf_op_names.cc37 bool TFGraphDialect::IsAll(TFOp op) const { in IsAll() function in mlir::tfg::TFGraphDialect
689 IsAny(op) || IsAll(op); in IsReduction()
Dtf_op_names.inc5 bool IsAll(TFOp op) const;
/external/tensorflow/tensorflow/compiler/xla/tools/
Dhlo_control_flow_flattening_test.cc704 EXPECT_TRUE(hlo_bound->literal().IsAll(expected_bound)); in CheckWhileBound()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dhlo_test_base.cc325 if (reference.IsAll(0)) { in RunAndCompareInternal()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgeneric_layout_optimizer_transposer.cc2095 IsMin(node) || IsAll(node) || IsAny(node); in IsReduceOp()
Dconstant_folding.cc2867 } else if (IsAny(*node) || IsAll(*node)) { in ReplaceReductionWithIdentity()
/external/tensorflow/tensorflow/core/transforms/constant_folding/
Dpass.cc2088 else if (dialect_->IsAny(op) || dialect_->IsAll(op)) in ReplaceReductionWithIdentity()