Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/tests/
Dselect_test.cc41 auto on_false = builder.ConstantR0<float>(42.0f); in TEST_F() local
42 auto result = builder.Select(pred, on_true, on_false); in TEST_F()
51 auto on_false = builder.ConstantR0<int32>(42); in TEST_F() local
52 auto result = builder.Select(pred, on_true, on_false); in TEST_F()
61 auto on_false = builder.ConstantR0<float>(42.0f); in TEST_F() local
62 auto result = builder.Select(pred, on_true, on_false); in TEST_F()
71 auto on_false = builder.ConstantR1<float>({}); in XLA_TEST_F() local
72 auto select = builder.Select(pred, on_true, on_false); in XLA_TEST_F()
81 auto on_false = builder.ConstantR1<float>({10.0f, 5.0f, 1.0f, 10.0f, -6.0f}); in TEST_F() local
82 auto select = builder.Select(pred, on_true, on_false); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dtuple_ops.cc34 llvm::Value* on_false, llvm::IRBuilder<>* ir_builder, in EmitTupleSelect() argument
58 ir_builder->CreateInBoundsGEP(on_false, element_index); in EmitTupleSelect()
Dtuple_ops.h63 llvm::Value* on_false, llvm::IRBuilder<>* ir_builder,
/external/tensorflow/tensorflow/compiler/xla/service/
Dtuple_points_to_analysis.cc392 auto on_false = select->operand(2); in HandleSelect() local
394 const PointsToSet& false_points_to_set = *PerInst(on_false)->points_to_set; in HandleSelect()
Dshape_inference.h281 const Shape& on_false);
Dshape_inference.cc2383 const Shape& pred, const Shape& on_true, const Shape& on_false) { in InferSelectShape() argument
2388 compatible = ShapeUtil::Compatible(on_true, on_false); in InferSelectShape()
2390 compatible = ShapeUtil::CompatibleIgnoringFpPrecision(on_true, on_false); in InferSelectShape()
2396 ShapeUtil::HumanString(on_false).c_str()); in InferSelectShape()
2408 on_true, ShapeUtil::HigherPrecisionElementType(on_true, on_false)); in InferSelectShape()
Dhlo_evaluator_test.cc160 auto on_false = Literal::CreateR2<float>({{0.f, 5.f}, {0.f, 4.f}}); in TEST_P() local
168 b.AddInstruction(HloInstruction::CreateConstant(std::move(on_false))); in TEST_P()
Dhlo_evaluator.cc846 [](bool pred, ReturnT on_true, ReturnT on_false) { in HandleSelect() argument
850 return on_false; in HandleSelect()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py743 def Select(self, pred, on_true, on_false): argument
753 _unwrap_data_handle(on_false)))
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter.cc424 auto on_false = select->operand(2); in HandleSelect() local
431 GetBasePointer(*on_false), &ir_builder_, module_); in HandleSelect()
/external/tensorflow/tensorflow/docs_src/performance/xla/
Doperation_semantics.md1771 <b> `Select(pred, on_true, on_false)` </b>
1777 `on_false` | `ComputationDataHandle` | array of type T
1779 The arrays `on_true` and `on_false` must have the same shape. This is also the
1781 `on_true` and `on_false`, with the `PRED` element type.
1784 taken from `on_true` if the value of `P` is `true`, and from `on_false` if the
1788 `on_false` if `pred` is `false`.
1811 types for this purpose. If `on_true` and `on_false` are tuples (which must have
/external/tensorflow/tensorflow/compiler/xla/client/
Dcomputation_builder.cc471 const ComputationDataHandle& on_false) { in Select() argument
472 return TernaryOp(TRIOP_SELECT, pred, on_true, on_false); in Select()
Dcomputation_builder.h302 const ComputationDataHandle& on_false);
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc316 auto on_false = select->operand(2); in HandleSelect() local
323 GetEmittedValueFor(on_false), &ir_builder_, module_); in HandleSelect()
/external/python/cpython3/Doc/faq/
Dprogramming.rst717 [on_true] if [expression] else [on_false]
725 [expression] and [on_true] or [on_false]
/external/python/cpython2/Doc/faq/
Dprogramming.rst877 [on_true] if [expression] else [on_false]