Home
last modified time | relevance | path

Searched refs:num_branches (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/tests/
Dconditional_test.cc193 int num_branches = GetParam(); in XLA_TEST_P() local
194 for (int bi = -1; bi <= num_branches; ++bi) { in XLA_TEST_P()
202 std::vector<XlaOp> operands(num_branches, operand); in XLA_TEST_P()
204 branches.reserve(num_branches); in XLA_TEST_P()
205 std::vector<const XlaComputation*> branches_p(num_branches); in XLA_TEST_P()
206 for (int i = 0; i < num_branches; ++i) { in XLA_TEST_P()
213 float expected = 10 * static_cast<float>((bi < 0 || bi >= num_branches) in XLA_TEST_P()
214 ? num_branches - 1 in XLA_TEST_P()
236 int num_branches = GetParam(); in XLA_TEST_P() local
237 for (int bi = -1; bi <= num_branches; ++bi) { in XLA_TEST_P()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dcase_op.cc43 int num_branches = branches_.size(); in Compile() local
44 OP_REQUIRES(ctx, num_branches >= 1, in Compile()
102 std::vector<XlaCompiler::CompilationResult> branch_results(num_branches); in Compile()
103 std::vector<XlaCompiler::CompilationResult*> branch_results_p(num_branches); in Compile()
104 for (int j = 0; j < num_branches; ++j) { in Compile()
141 for (int j = 0; j < num_branches; ++j) { in Compile()
150 std::vector<const xla::XlaComputation*> result_computations(num_branches); in Compile()
151 for (int j = 0; j < num_branches; ++j) { in Compile()
237 std::vector<xla::XlaOp>(num_branches, input_tuple)); in Compile()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_verifier.cc670 const int num_branches = conditional->branch_count(); in HandleConditional() local
672 TF_RET_CHECK(num_branches == 2); in HandleConditional()
674 TF_RET_CHECK(num_branches >= 1); in HandleConditional()
676 TF_RETURN_IF_ERROR(CheckOperandCount(conditional, num_branches + 1)); in HandleConditional()
677 for (int j = 0; j < num_branches; ++j) { in HandleConditional()
/external/vixl/test/
Dtest-pool-manager.cc655 int num_branches, in AddNBranches() argument
660 for (int i = 0; i < num_branches; ++i) { in AddNBranches()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc2533 int num_branches = conditional->branch_count(); in HandleConditional() local
2540 for (int b = 0; b < num_branches; ++b) { in HandleConditional()
2614 EmitGlobalCall(*conditional->branch_computation(num_branches - 1), in HandleConditional()
2621 b_.CreateSwitch(branch_index_value, default_block, num_branches - 1); in HandleConditional()
2623 for (int b = 0; b < num_branches - 1; ++b) { // last branch is default in HandleConditional()