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

Method BindArguments

tensorflow/lite/delegates/gpu/cl/kernels/add.cc:172–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172Status Add::BindArguments(CLKernel* kernel) {
173 for (int i = 1; i < src_depthes_.size(); ++i) {
174 RETURN_IF_ERROR(kernel->SetMemoryAuto(src_[i]->GetMemoryPtr()));
175 }
176 if (HasTexture2DStorageType(definition_)) {
177 float inv_divisor = 1.0f / static_cast<float>(dst_depth_);
178 RETURN_IF_ERROR(kernel->SetBytesAuto(inv_divisor));
179 }
180 return OkStatus();
181}
182
183Status Add::Compile(const CreationContext& creation_context) {
184 const auto code =

Callers

nothing calls this directly

Calls 6

HasTexture2DStorageTypeFunction · 0.85
OkStatusFunction · 0.85
SetMemoryAutoMethod · 0.80
sizeMethod · 0.45
GetMemoryPtrMethod · 0.45
SetBytesAutoMethod · 0.45

Tested by

no test coverage detected