Home
last modified time | relevance | path

Searched refs:on_false (Results 1 – 19 of 19) 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/llvm_ir/
Dtuple_ops.cc37 llvm::Value* on_true, llvm::Value* on_false, in EmitTupleSelect() argument
60 b->CreateInBoundsGEP(on_false, element_index); in EmitTupleSelect()
Dtuple_ops.h63 llvm::Value* on_true, llvm::Value* on_false,
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_creation_utils.cc277 HloInstruction* on_false) { in MakeSelectHlo() argument
280 DCHECK_EQ(computation, on_false->parent()); in MakeSelectHlo()
283 HloOpcode::kSelect, pred, on_true, on_false)); in MakeSelectHlo()
285 select_shape, HloOpcode::kSelect, pred, on_true, on_false)); in MakeSelectHlo()
Dshape_inference.h315 const Shape& on_false);
319 const Shape& on_false);
Dhlo_creation_utils.h130 HloInstruction* on_false);
Dshape_inference.cc2773 const Shape& pred, const Shape& on_true, const Shape& on_false) { in InferSelectShape() argument
2774 if (!ShapeUtil::CompatibleIgnoringFpPrecision(on_true, on_false)) { in InferSelectShape()
2777 ShapeUtil::HumanString(on_true), ShapeUtil::HumanString(on_false)); in InferSelectShape()
2793 on_true, ShapeUtil::HigherPrecisionElementType(on_true, on_false)); in InferSelectShape()
2812 const Shape& pred, const Shape& on_true, const Shape& on_false) { in InferTupleSelectShape() argument
2815 if (!ShapeUtil::Compatible(on_true, on_false)) { in InferTupleSelectShape()
2818 ShapeUtil::HumanString(on_true), ShapeUtil::HumanString(on_false)); in InferTupleSelectShape()
Dtuple_points_to_analysis.cc404 auto on_false = tuple_select->operand(2); in HandleTupleSelect() local
406 const PointsToSet& false_points_to_set = *PerInst(on_false)->points_to_set; in HandleTupleSelect()
Dhlo_evaluator.cc1291 const auto& on_false = GetEvaluatedLiteralFor(select->operand(2)); in HandleSelect() local
1298 evaluated_[select] = on_false.Clone(); in HandleSelect()
1309 const auto& on_false = GetEvaluatedLiteralFor(tuple_select->operand(2)); in HandleTupleSelect() local
1314 evaluated_[tuple_select] = on_false.Clone(); in HandleTupleSelect()
Dhlo_evaluator_test.cc226 auto on_false = LiteralUtil::CreateR2<float>({{0.f, 5.f}, {0.f, 4.f}}); in TEST_P() local
234 b.AddInstruction(HloInstruction::CreateConstant(std::move(on_false))); in TEST_P()
Dhlo_evaluator_typed_visitor.h968 [](bool pred, ReturnT on_true, ReturnT on_false) { in HandleSelect()
972 return on_false; in HandleSelect()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter.cc430 auto on_false = tuple_select->operand(2); in HandleTupleSelect() local
436 GetBasePointer(*on_true), GetBasePointer(*on_false), in HandleTupleSelect()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py1309 def Select(self, pred, on_true, on_false): argument
1315 return self._client.Select(pred, on_true, on_false)
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.h370 XlaOp Select(const XlaOp& pred, const XlaOp& on_true, const XlaOp& on_false);
758 const XlaOp& on_false);
1256 XlaOp Select(const XlaOp& pred, const XlaOp& on_true, const XlaOp& on_false);
Dxla_builder.cc965 const XlaOp& on_false) { in Select() argument
968 TF_ASSIGN_OR_RETURN(const Shape& false_shape, GetShape(on_false)); in Select()
972 return TernaryOp(opcode, pred, on_true, on_false); in Select()
2909 XlaOp Select(const XlaOp& pred, const XlaOp& on_true, const XlaOp& on_false) { in Select() argument
2910 return pred.builder()->Select(pred, on_true, on_false); in Select()
/external/tensorflow/tensorflow/compiler/xla/g3doc/
Doperation_semantics.md2225 <b> `Select(pred, on_true, on_false)` </b>
2231 `on_false` | `XlaOp` | array of type T
2233 The arrays `on_true` and `on_false` must have the same shape. This is also the
2235 `on_true` and `on_false`, with the `PRED` element type.
2238 taken from `on_true` if the value of `P` is `true`, and from `on_false` if the
2241 wholly from `on_true` if `pred` is `true`, and from `on_false` if `pred` is `false`.
2264 types for this purpose. If `on_true` and `on_false` are tuples (which must have
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc314 auto on_false = tuple_select->operand(2); in HandleTupleSelect() local
321 GetEmittedValueFor(on_false), &b_); in HandleTupleSelect()
/external/python/cpython3/Doc/faq/
Dprogramming.rst722 [on_true] if [expression] else [on_false]
730 [expression] and [on_true] or [on_false]
/external/python/cpython2/Doc/faq/
Dprogramming.rst877 [on_true] if [expression] else [on_false]