Home
last modified time | relevance | path

Searched refs:getNumResults (Results 1 – 25 of 160) sorted by relevance

1234567

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dmaterialize_mlir_passthrough_op.cc70 if (main.getFunctionType().getNumResults() != op->getNumResults()) { in runOnOperation()
72 << op->getNumResults() in runOnOperation()
74 << main.getFunctionType().getNumResults() in runOnOperation()
Dconvert_control_to_data_outputs.cc153 if (fetch.getNumOperands() == graph_op->getNumResults()) return false; in RemoveAllControlOutputs()
157 fetch.fetches().drop_front(graph_op->getNumResults())) { in RemoveAllControlOutputs()
164 graph_op.getNumResults(), in RemoveAllControlOutputs()
165 fetch.getNumOperands() - graph_op.getNumResults()); in RemoveAllControlOutputs()
419 int num_old_outputs = while_body.getNumResults(); in ConvertControlToDataOutputs()
Dfunctional_control_flow_to_cfg.cc120 assert(op->getNumResults() == block->getNumArguments()); in ReplaceOpResultWithBlockArgs()
121 for (unsigned i = 0, e = op->getNumResults(); i != e; ++i) { in ReplaceOpResultWithBlockArgs()
251 assert(cond_call_op->getNumResults() == 1); in LowerWhileOp()
Dtpu_merge_variables_with_execute.cc257 llvm::SmallVector<bool, 8> output_merged(execute_launch.getNumResults(), in BuildVariableAccessInfo()
330 execute_launch.getNumResults()); in BuildVariableAccessInfo()
331 for (int i = 0, end = execute_launch.getNumResults(); i < end; ++i) { in BuildVariableAccessInfo()
370 const int parallel_execute_num_results = parallel_execute_op->getNumResults(); in ReplaceParallelExecute()
399 new_parallel_execute_op->getNumResults(); in ReplaceParallelExecute()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_remaining_ops.cc113 if (op->getNumResults() != func.getFunctionType().getNumResults()) in verify()
115 << func.getFunctionType().getNumResults() in verify()
117 << op->getNumResults() in verify()
Dtf_executor.cc188 if (fetch.getNumOperands() < graph.getNumResults()) in verify()
194 const int64_t num_results = graph.getNumResults(); in verify()
272 return wrapped_op.getNumResults() == yield.getNumOperands() && in WrapsSingleOp()
288 int result_count = island.getNumResults() - 1; // -1 for the control token in verify()
303 for (int operand_idx : llvm::seq<int>(0, island.getNumResults() - 1)) { in verify()
461 if (switchn.getNumResults() != num_outs.getInt() + 1) in verify()
464 << (switchn.getNumResults() - 1); in verify()
512 p << " of " << (getNumResults() - 1); in print()
1006 if (op.getNumOperands() != 0 || op.getNumResults() != 1 || in matchAndRewrite()
1029 if (op.getNumOperands() != 0 || op.getNumResults() != 2 || in matchAndRewrite()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils_test.cc132 EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1); in TEST_F()
161 EXPECT_EQ(it->getNumResults(), 1); in TEST_F()
183 EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1); in TEST_F()
215 EXPECT_EQ(it->getNumResults(), 1); in TEST_F()
232 EXPECT_EQ(fused_ln_lstm_func_.getFunctionType().getNumResults(), 1); in TEST_F()
242 EXPECT_EQ(it->getNumResults(), 1); in TEST_F()
254 EXPECT_EQ(fused_ln_lstm_func_.getFunctionType().getNumResults(), 1); in TEST_F()
Dperception_ops_utils.cc118 if (func_.getFunctionType().getNumResults() != 1) { in VerifySignature()
121 << func_.getFunctionType().getNumResults(); in VerifySignature()
214 if (func_.getFunctionType().getNumResults() != 1) { in VerifySignature()
217 << func_.getFunctionType().getNumResults(); in VerifySignature()
Dnms_utils.cc69 if (func_.getFunctionType().getNumResults() != 2) { in VerifySignature()
72 << func_.getFunctionType().getNumResults(); in VerifySignature()
188 if (func_.getFunctionType().getNumResults() != 4) { in VerifySignature()
191 << ": " << func_.getFunctionType().getNumResults(); in VerifySignature()
Dtftext_utils.cc101 if (func.getNumResults() != kValidNumOfOutput[input_type.getRank()]) { in VerifyWhitespaceTokenizer()
112 if (func.getNumResults() > 1) { in VerifyWhitespaceTokenizer()
119 if (func.getNumResults() > 2) { in VerifyWhitespaceTokenizer()
275 func.getFunctionType().getNumResults() != 1) { in VerifySgnnProjection()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dquantization_context.cc56 for (int res = 0, e = op.getNumResults(); res != e; ++res) { in QuantizeContext()
76 for (int i = 0; i < op.getNumResults(); ++i) { in GetSignature()
145 for (int res = 0, e = op.getNumResults(); res != e; ++res) { in Finalize()
176 for (auto i = 0; i < op.getNumResults(); ++i) { in DumpStates()
217 for (int i = 0, e = op->getNumResults(); i != e; ++i) { in GetQuantParamsForSameScaleConstraint()
229 if (op->getNumResults() == 1 && immutable_results_num == 1) { in GetQuantParamsForSameScaleConstraint()
248 if (op->getNumResults() == 1 && mutable_results_num == 1) { in GetQuantParamsForSameScaleConstraint()
272 for (int res = 0, e = op->getNumResults(); res != e; ++res) { in PropagateQuantParams()
/external/tensorflow/tensorflow/compiler/mlir/quantization/tensorflow/passes/
Dinsert_main_function.cc97 for (int i = 0; i < func.getNumResults(); ++i) { in SetFunctionPrivate()
169 output_names.size() != main_func.getNumResults()) { in CreateMainFunction()
175 << ", got: " << main_func.getNumResults(); in CreateMainFunction()
187 int numResults = main_func.getNumResults(); in CreateMainFunction()
210 result_types.begin() + result_idx, function.getNumResults()); in CreateMainFunction()
211 result_idx += function.getNumResults(); in CreateMainFunction()
/external/tensorflow/tensorflow/dtensor/mlir/expansions/
Dsplit_spmd_expander.cc103 llvm::DenseMap<int, Layout> output_layouts(split_op.getNumResults()); in ComputeLayoutForward()
106 for (int i = 0; i < split_op.getNumResults(); ++i) { in ComputeLayoutForward()
156 llvm::DenseMap<int, Layout> output_layouts(split_v_op.getNumResults()); in ComputeLayoutForward()
159 for (int i = 0; i < split_v_op.getNumResults(); ++i) { in ComputeLayoutForward()
Dtrivial_spmd_expander.cc39 assert(output_types.size() == parent_op->getNumResults()); in ExpandOp()
84 llvm::DenseMap<int, Layout> output_layouts(op->getNumResults()); in ComputeLayoutForward()
Dsave_restore_spmd_expander.cc574 llvm::SmallVector<std::string> new_shapes_and_slices(op->getNumResults()); in ExpandRestoreV2OpHelper()
721 global_shapes.reserve(op->getNumResults()); in ExpandRestoreV2Op()
737 if (op->getNumResults() == 1 && !GetShapeOfValue(op->getResult(0)).ok()) { in ExpandRestoreV2Op()
752 new_types.reserve(op->getNumResults()); in ExpandRestoreV2Op()
794 llvm::SmallVector<Layout> layouts(restore_op->getNumResults()); in GetLayoutsFromAssignVariableOps()
863 if (layouts.size() != restore_v2.getNumResults()) { in ComputeLayoutForward()
866 restore_v2.getNumResults(), in ComputeLayoutForward()
870 llvm::DenseMap<int, Layout> output_layouts(restore_v2.getNumResults()); in ComputeLayoutForward()
884 llvm::DenseMap<int, Layout> output_layouts(restore_v2.getNumResults()); in ComputeLayoutForward()
Dreplicated_spmd_expander.cc121 llvm::DenseMap<int, Layout> output_layouts(op->getNumResults()); in ComputeLayoutForward()
122 for (int i = 0; i < op->getNumResults(); ++i) { in ComputeLayoutForward()
Dnullary_spmd_expander.cc41 if (op->getNumResults() == 0) return op; in ExpandOp()
121 for (auto i = 0; i < op->getNumResults(); ++i) { in ComputeLayoutForward()
/external/tensorflow/tensorflow/core/transforms/func_to_graph/
Dfunc_to_graph.cc83 if (result_index >= op->getNumResults()) { in FuncToGraph()
87 op->getNumResults(), " results"); in FuncToGraph()
/external/tensorflow/tensorflow/compiler/xla/mlir/transforms/runtime/
Dcalling_convention.cc57 results.reserve(func.getNumResults()); in DefaultCallingConvention()
82 inputs.reserve(1 + func.getNumInputs() + func.getNumResults()); in ResultsToOutsCallingConvention()
/external/tensorflow/tensorflow/core/ir/
Dtf_op_wrapper.h87 Value controlRet() { return op_->getResult(op_->getNumResults() - 1); } in controlRet()
91 return op_->getResults().slice(0, op_->getNumResults() - 1); in getNonControlResults()
/external/tensorflow/tensorflow/dtensor/mlir/
Dshape_utils.cc93 const int num_results = op->getNumResults(); in ExtractGlobalOutputShape()
96 if (output_index >= op->getNumResults()) in ExtractGlobalOutputShape()
213 assert(inferred_return_types.size() == op->getNumResults()); in InferSPMDExpandedLocalShape()
Dspmd_expander.cc73 if (computed_layout.empty() && op->getNumResults() != 0) { in ExpandOpAndSetLayout()
83 global_output_shapes.reserve(op->getNumResults()); in ExpandOpAndSetLayout()
/external/tensorflow/tensorflow/core/transforms/graph_compactor/
Dpass.cc116 if (func.getNumResults()) { in runOnOperation()
119 res_attrs.reserve(func.getNumResults()); in runOnOperation()
127 if (func.getNumArguments() || func.getNumResults()) { in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Doutline_with_xla_framework.cc82 op->getNumResults() != 0) in matchAndRewrite()
91 SmallVector<Type> result_array(func.getFunctionType().getNumResults(), in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/gml_st/transforms/
Dfusion.cc65 assert(materializeOp->getNumResults() == 1 && "assume single result"); in matchAndRewrite()
74 if (genericOp.getNumResults() != 1 || !genericOp.hasTensorSemantics()) { in matchAndRewrite()

1234567