MCPcopy Create free account
hub / github.com/alibaba/euler / Get

Method Get

euler/core/framework/op_kernel.cc:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void Get(const std::string& op_name, OpKernel** op) {
45 *op = nullptr;
46 MutexLock lock(&mu_);
47 auto it = cache_.find(op_name);
48 if (it != cache_.end()) {
49 *op = it->second;
50 }
51 }
52
53 void Cache(OpKernel* op) {
54 MutexLock lock(&mu_);

Callers 1

CreateOpKernelFunction · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected