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

Method tensor

euler/core/framework/op_kernel.cc:159–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159Status OpKernelContext::tensor(const std::string& name, Tensor** tensor) {
160 *tensor = nullptr;
161 {
162 MutexLock l(&mu_);
163 auto it = tensor_map_.find(name);
164 if (it == tensor_map_.end()) {
165 return Status::NotFound("Tensor '", name, "' not found!");
166 }
167 *tensor = it->second;
168 }
169 return Status::OK();
170}
171
172Status OpKernelContext::RemoveAlias(const std::string& name) {
173 MutexLock l(&mu_);

Callers 15

GetResultMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
TESTFunction · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 15

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
AsyncComputeMethod · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64