MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / LookUp

Method LookUp

tensorflow/core/framework/op.cc:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Status OpRegistry::LookUp(const string& op_type_name,
62 const OpRegistrationData** op_reg_data) const {
63 {
64 tf_shared_lock l(mu_);
65 if (initialized_) {
66 if (const OpRegistrationData* res =
67 gtl::FindWithDefault(registry_, op_type_name, nullptr)) {
68 *op_reg_data = res;
69 return Status::OK();
70 }
71 }
72 }
73 return LookUpSlow(op_type_name, op_reg_data);
74}
75
76Status OpRegistry::LookUpSlow(const string& op_type_name,
77 const OpRegistrationData** op_reg_data) const {

Callers 15

RunCppShapeInferenceImplFunction · 0.45
GetOpDefFunction · 0.45
PrintNodeInfoMethod · 0.45
TryFindKernelClassFunction · 0.45
InitializeNodeDefMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
InferShapesMethod · 0.45
AddFunctionMethod · 0.45

Calls 4

NotFoundFunction · 0.85
HostnameFunction · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by 5

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
InferShapesMethod · 0.36
TESTFunction · 0.36