Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/lite/src/
Dlite_kernel_util.cc54 if (kernel_is_input && !lite::IsContain(input_nodes, kernel)) { in SubgraphInputNodes()
72 if (!lite::IsContain(output_nodes, kernel)) { in SubgraphOutputNodes()
79 !lite::IsContain(output_nodes, kernel)) { in SubgraphOutputNodes()
94 if (!lite::IsContain(input_tensors, in_node_in_tensor)) { in SubgraphInputTensors()
109 if (!lite::IsContain(input_tensors, in_node_in_tensor)) { in SubgraphInputTensors()
127 if (!lite::IsContain(output_tensors, out_kernel_out_tensor)) { in SubgraphOutputTensors()
143 if (!lite::IsContain(output_tensors, out_kernel_out_tensor)) { in SubgraphOutputTensors()
171 if (lite::IsContain(*kernels, const_cast<kernel::LiteKernel *>(next_kernel))) { in TopologicalSortKernels()
176 return lite::IsContain(*kernels, const_cast<kernel::LiteKernel *>(in_kernel)); in TopologicalSortKernels()
Dlite_kernel.cc31 if (IsContain(scope_tensors, in_tensor)) { in IsReady()
Dlite_kernel.h301 if (!lite::IsContain(this->in_kernels_, kernel)) { in AddInKernel()
307 if (!lite::IsContain(this->out_kernels_, kernel)) { in AddOutKernel()
Dlite_session.cc241 if (IsContain(model_input_indices, i)) { in ConvertTensors()
249 if (IsContain(model_output_indices, i)) { in ConvertTensors()
598 if (IsContain(out_tensors, tensor)) { in IsIsolatedSubGraph()
Dscheduler.cc1383 if (IsContain(node->input_indices_, output_index)) { in IsControlFlowPattern()
1455 kernel->set_is_model_output(IsContain(graph_output_node_indexes_, size_t(node_index))); in ScheduleSubGraphToKernels()
1658 if ((IsContain(node->output_indices_, true_branch_output_index) || in InferSwitchShape()
1659 IsContain(node->output_indices_, false_branch_output_index)) && in InferSwitchShape()
/third_party/mindspore/mindspore/lite/tools/converter/legacy_optimizer/graph/
Dsubgraph_tensor_pass.cc32 if (IsContain<uint32_t>(node->inputIndex, tensor_idx)) { in IsUsing()
35 if (IsContain<uint32_t>(node->outputIndex, tensor_idx)) { in IsUsing()
40 if (IsContain<uint32_t>(subgraph->inputIndices, tensor_idx)) { in IsUsing()
43 if (IsContain<uint32_t>(subgraph->outputIndices, tensor_idx)) { in IsUsing()
Dsubgraph_node_pass.cc56 return (tensors_indices.count(idx) > 0) || IsContain(subgraph->inputIndices, idx); in IsNodeInputInSubgraph()
64 return (tensors_indices.count(idx) > 0) || IsContain(subgraph->outputIndices, idx); in IsNodeOutputInSubgraph()
99 if (!IsContain(new_nodes, *it)) { in Run()
116 if (!IsContain(old_nodes_, new_nodes[i])) { in Run()
136 if (IsContain(contain_node_output_subgraphs, subgraph)) { in Run()
Dtopological_sort_pass.cc61 if (IsContain(subgraph_node_indices, (unsigned int)(post_node_idx))) { in Run()
88 … [&](size_t input_idx) { return IsContain(sinked_tensor_idxes, size_t(input_idx)); }); in IsNodeNonDepend()
Dinfershape_pass.cc418 if (IsContain(node->outputIndex, true_branch_output_index) && in InferSwitchNode()
429 if (IsContain(node->outputIndex, false_branch_output_index) && in InferSwitchNode()
459 if (IsContain(node->outputIndex, call_first_input_index) && in InferCallNode()
469 …if (IsContain(node->outputIndex, call_first_input_index) && node->primitive->value.type == Primiti… in InferCallNode()
567 if (IsContain(subgraph->inputIndices, i) || !graph->allTensors.at(i)->data.empty()) { in InitSearchTensor()
/third_party/mindspore/mindspore/lite/tools/converter/legacy_optimizer/fusion/
Dfusion_pass.cc141 if (IsContain(sinkIdes, nodeIdx)) { in MatchOnePattern()
149 if (IsContain(outputOp->types, node->primitive->value.type)) { in MatchOnePattern()
164 if (IsContain(sinkIdes, nodeIdx)) { in MatchOnePattern()
218 if (!IsContain(matchedNodeIdxes, inputNodePostNodeIdx)) { in CheckMatch()
226 if (!IsContain(matchedNodeIdxes, outputNodePreNodeIdx)) { in CheckMatch()
304 if (IsContain(sinkIdes, nodeIdx) && !IsContain(pathSinkIdes, nodeIdx)) { in CheckMatchParams()
309 if (!target->isPlaceHold && !IsContain(target->types, scope->primitive->value.type)) { in CheckMatchParams()
Dfusion_pattern.cc110 if (IsContain(ids, patternOp->id)) { in Finish()
/third_party/mindspore/mindspore/lite/tools/converter/parser/caffe/
Dcaffe_inspector.cc52 if (!IsContain(layerTops, iter)) { in FindGraphInputsAndOutputs()
57 if (layerBottoms.find(iter) == layerBottoms.end() && !IsContain(graphOutput, iter)) { in FindGraphInputsAndOutputs()
74 if (!IsContain(layerTops, layer.top(j))) { in SetLayerTopsAndBottoms()
/third_party/mindspore/mindspore/lite/src/common/
Dgraph_util.cc42 if (!IsContain<size_t>(ret, j)) { in GetGraphInputNodes()
61 if (!IsContain<size_t>(ret, j)) { in GetGraphOutputNodes()
94 return IsContain(packed_ops, op_type); in IsPackedOp()
Dutils.h51 bool IsContain(const std::vector<T> &vec, T element) { in IsContain() function
90 if (!IsContain(*vec, dstElement)) { in VectorReplace()
/third_party/mindspore/mindspore/lite/src/train/
Dtrain_utils.cc143 if (!IsContain(valid_type, tensor->data_type())) { in CastTensor()
148 if (!IsContain(valid_type, dst_data_type)) { in CastTensor()
160 if (IsContain(fp32_type, tensor->data_type()) && dst_data_type == kNumberTypeFloat16) { in CastTensor()
196 if (!IsContain(valid_type, tensor->data_type())) { in ScaleTensor()
Dtrain_export.cc44 if (IsContain<uint32_t>(input_indexes, tensor_idx)) { in GetLinkedPostIdx()
477 if (IsContain(subgraph_node_indices, (unsigned int)(post_node_idx))) { in TopologicalSort()
504 … [&](size_t input_idx) { return IsContain(sinked_tensor_idxes, size_t(input_idx)); }); in IsNodeNonDepend()
Dtrain_session.cc939 if (IsContain(inference_kernels[i]->out_tensors(), kernel_in_tensors[j])) { in FindUseInTensorKernel()
957 return IsContain(export_output_tensor_names, out_tensor->tensor_name()); in FindExportKernels()
976 if (!IsContain(*export_kernels, kernel)) { in FindExportKernels()
/third_party/mindspore/mindspore/lite/src/runtime/
Druntime_pass.cc89 if (IsContain(Nc4hw4FormatOutOpList, start_kernel->type()) == false) { in Nc4hw4PassMatch()
109 if (IsContain(Nc4hw4FormatInOpList, end_kernel->type()) == false) { in Nc4hw4PassMatch()
/third_party/mindspore/mindspore/lite/src/ops/populate/
Dpopulate_register.h57 if (lite::IsContain(string_op, static_cast<schema::PrimitiveType>(type))) { in GetParameterCreator()
/third_party/mindspore/mindspore/lite/tools/common/
Dgraph_util.cc142 if (IsContain<uint32_t>(outputIndexes, tensorIdx)) { in GetLinkedPreIdx()
157 if (IsContain<uint32_t>(inputIndexes, tensorIdx)) { in GetLinkedPostIdx()
417 if (!IsContain(node->inputIndex, inTensorIdx)) { in ReplaceTensorOfNode()
589 bool is_output_index = IsContain(graphT->outputIndex, postTensorIdx); in InsertNodeAfter()
683 if (IsContain(subgraph_indices, input_idx)) { in SetSubgraphTensorIndices()
690 if (IsContain(subgraph_indices, output_idx)) { in SetSubgraphTensorIndices()
Dtensor_util.cc250 if (IsContain(node->inputIndex, tensorIdx)) { in GetRefCount()
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/
Dtflite_inputs_adjust.cc192 if (lite::IsContain(single_input_ops, primitive->name()) || CheckResize(cnode)) { in Run()
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/
Dquantize_util.cc68 if (!IsContain(conv_types_, primitive_c->name())) { in CanConvOpQuantized()
156 if (!IsContain(mul_types_, primitive_c->name())) { in CanMulOpQuantized()
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/
Dtflite_lstm_cell_fusion.cc348 if (!lite::IsContain(valid_indexes, index)) { in CheckReferencedOutputs()
/third_party/mindspore/mindspore/lite/tools/anf_exporter/
Danf_exporter.cc770 if (IsContain(graph_inputs_, input_node->cast<AnfNodePtr>()) && in SetOpInputNode()