MCPcopy Create free account
hub / github.com/OAID/Tengine / SelectFunc

Function SelectFunc

executor/operator/arm64/fc/feature_match.cpp:354–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352};
353
354NodeOps* SelectFunc(const CPUInfo* cpu_info, Node* node)
355{
356 Tensor* input = node->GetInputTensor(0);
357 const int data_type = input->GetDataType();
358 const ExecAttr* exec_attr = any_cast<const ExecAttr*>(node->GetAttr(ATTR_EXEC_ATTR));
359 if(data_type != TENGINE_DT_FP32 || exec_attr->graph_layout != TENGINE_LAYOUT_NCHW)
360 return nullptr;
361
362 FMOps* ops = new FMOps();
363
364 int master_cpu = cpu_info->GetMasterCPU();
365
366 if(cpu_info->GetCPUModelString(master_cpu) == std::string("A72"))
367 ops->cpu_type = TYPE_A72;
368 else
369 ops->cpu_type = TYPE_A53;
370
371 return ops;
372}
373
374} // namespace FM_fast
375

Callers

nothing calls this directly

Calls 5

GetDataTypeMethod · 0.80
GetMasterCPUMethod · 0.80
GetCPUModelStringMethod · 0.80
GetInputTensorMethod · 0.45
GetAttrMethod · 0.45

Tested by

no test coverage detected