Home
last modified time | relevance | path

Searched refs:on_false (Results 1 – 24 of 24) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/tests/
Dselect_test.cc40 auto on_false = ConstantR0<float>(&builder, 42.0f); in TEST_F() local
41 Select(pred, on_true, on_false); in TEST_F()
50 auto on_false = ConstantR0<int32>(&builder, 42); in TEST_F() local
51 Select(pred, on_true, on_false); in TEST_F()
60 auto on_false = ConstantR0<float>(&builder, 42.0f); in TEST_F() local
61 Select(pred, on_true, on_false); in TEST_F()
70 auto on_false = ConstantR1<float>(&builder, {}); in XLA_TEST_F() local
71 Select(pred, on_true, on_false); in XLA_TEST_F()
81 auto on_false = in TEST_F() local
83 Select(pred, on_true, on_false); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dconditional_code_motion_test.cc285 const HloComputation* on_false = conditional->branch_computation(1); in TEST_F() local
286 ASSERT_EQ(on_false->instruction_count(), 1); in TEST_F()
353 const HloComputation* on_false = conditional->branch_computation(1); in TEST_F() local
354 ASSERT_EQ(on_false->instruction_count(), 9); in TEST_F()
408 const HloComputation* on_false = conditional->branch_computation(1); in TEST_F() local
409 ASSERT_EQ(on_false->instruction_count(), 3); in TEST_F()
610 const HloComputation* on_false = conditional->branch_computation(1); in TEST_F() local
611 ASSERT_EQ(on_false->instruction_count(), 5); in TEST_F()
697 const HloComputation* on_false = conditional->branch_computation(1); in TEST_F() local
698 ASSERT_EQ(on_false->instruction_count(), 6); in TEST_F()
[all …]
Dshape_inference.h361 const Shape& on_false);
365 const Shape& on_false);
Dhlo_creation_utils.cc383 HloInstruction* on_false, in MakeSelectHlo() argument
387 DCHECK_EQ(computation, on_false->parent()); in MakeSelectHlo()
406 on_true, on_false)); in MakeSelectHlo()
409 select_shape, select_op_code, pred, on_true, on_false)); in MakeSelectHlo()
Dhlo_creation_utils.h172 HloInstruction* on_false,
Dshape_inference.cc3127 const Shape& pred, const Shape& on_true, const Shape& on_false) { in InferSelectShape() argument
3130 TF_RETURN_IF_ERROR(ExpectArray(on_false, "select on-false")); in InferSelectShape()
3132 if (!ShapeUtil::CompatibleIgnoringFpPrecision(on_true, on_false)) { in InferSelectShape()
3135 ShapeUtil::HumanString(on_true), ShapeUtil::HumanString(on_false)); in InferSelectShape()
3153 pred, ShapeUtil::HigherPrecisionElementType(on_true, on_false)); in InferSelectShape()
3157 const Shape& pred, const Shape& on_true, const Shape& on_false) { in InferTupleSelectShape() argument
3160 if (!ShapeUtil::Compatible(on_true, on_false)) { in InferTupleSelectShape()
3163 ShapeUtil::HumanString(on_true), ShapeUtil::HumanString(on_false)); in InferTupleSelectShape()
Dtuple_points_to_analysis.cc454 auto on_false = tuple_select->operand(2); in HandleTupleSelect() local
456 const PointsToSet& false_points_to_set = *PerInst(on_false)->points_to_set; in HandleTupleSelect()
Dhlo_evaluator.cc2003 const auto& on_false = GetEvaluatedLiteralFor(select->operand(2)); in HandleSelect() local
2010 evaluated_[select] = on_false.Clone(); in HandleSelect()
2021 const auto& on_false = GetEvaluatedLiteralFor(tuple_select->operand(2)); in HandleTupleSelect() local
2026 evaluated_[tuple_select] = on_false.Clone(); in HandleTupleSelect()
Dhlo_evaluator_typed_visitor.h1045 [](bool pred, ReturnT on_true, ReturnT on_false) {
1049 return on_false;
Dhlo_evaluator_test.cc296 auto on_false = LiteralUtil::CreateR2<float>({{0.f, 5.f}, {0.f, 4.f}}); in TEST_P() local
304 b.AddInstruction(HloInstruction::CreateConstant(std::move(on_false))); in TEST_P()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dtuple_ops.cc37 llvm::Value* on_true, llvm::Value* on_false, in EmitTupleSelect() argument
53 llvm::Value* src = b->CreateSelect(pred_cond, on_true, on_false); in EmitTupleSelect()
Dtuple_ops.h63 llvm::Value* on_true, llvm::Value* on_false,
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.h513 XlaOp Select(XlaOp pred, XlaOp on_true, XlaOp on_false);
1109 friend XlaOp Select(XlaOp pred, XlaOp on_true, XlaOp on_false);
1802 XlaOp Select(XlaOp pred, XlaOp on_true, XlaOp on_false);
Dxla_builder.cc1225 XlaOp XlaBuilder::Select(XlaOp pred, XlaOp on_true, XlaOp on_false) { in Select() argument
1228 TF_ASSIGN_OR_RETURN(const Shape* false_shape, GetShapePtr(on_false)); in Select()
1232 return TernaryOp(opcode, pred, on_true, on_false); in Select()
4186 XlaOp Select(const XlaOp pred, const XlaOp on_true, const XlaOp on_false) { in Select() argument
4187 return pred.builder()->Select(pred, on_true, on_false); in Select()
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/
Dhlo_ops_base.td1164 Constructs an output tensor from the elements of `on_true` and `on_false`
1167 `pred`, `on_true` and `on_false` must be broadcast compatible.
Dlhlo_ops.td484 Arg<LHLO_Buffer, "", [MemRead]>:$on_false,
Dhlo_ops.td1114 HLO_Tensor:$on_false
/external/tensorflow/tensorflow/compiler/xla/g3doc/
Doperation_semantics.md2511 <b> `Select(pred, on_true, on_false)` </b>
2517 `on_false` | `XlaOp` | array of type T
2519 The arrays `on_true` and `on_false` must have the same shape. This is also the
2521 `on_true` and `on_false`, with the `PRED` element type.
2524 taken from `on_true` if the value of `P` is `true`, and from `on_false` if the
2527 wholly from `on_true` if `pred` is `true`, and from `on_false` if `pred` is `false`.
2550 types for this purpose. If `on_true` and `on_false` are tuples (which must have
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_patterns.td514 // $gradients needs to be of static shape so that on_true and on_false operands
Dlegalize_tf.cc2616 Value on_false = broadcast_or_self(op.e()); in matchAndRewrite() local
2619 on_false); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc1805 if (on_true() == on_false()) { in fold()
1821 : on_false(); in fold()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc378 auto on_false = tuple_select->operand(2); in HandleTupleSelect() local
385 GetEmittedValueFor(on_false), &b_); in HandleTupleSelect()
/external/python/cpython3/Doc/faq/
Dprogramming.rst714 [on_true] if [expression] else [on_false]
722 [expression] and [on_true] or [on_false]
/external/python/cpython2/Doc/faq/
Dprogramming.rst877 [on_true] if [expression] else [on_false]