MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / HasCompatiblePhiKernel

Method HasCompatiblePhiKernel

paddle/phi/core/kernel_factory.cc:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool KernelFactory::HasCompatiblePhiKernel(const std::string& op_type) const {
64 if (phi::OpUtilsMap::Instance().Contains(op_type) ||
65 (kernels_.find(op_type) != kernels_.end())) {
66 return true;
67 }
68 return false;
69}
70
71bool KernelFactory::HasStructuredKernel(const std::string& op_type) const {
72 auto phi_kernel_name = phi::OpUtilsMap::Instance().GetBaseKernelName(op_type);

Callers 8

RunImplMethod · 0.80
BuildOpFuncListFunction · 0.80
PYBIND11_MODULEFunction · 0.80
GenerateOpFunctionsFunction · 0.80
CheckOpProtoFunction · 0.80
operator()Method · 0.80

Calls 4

InstanceFunction · 0.85
ContainsMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected