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

Method BindArguments

tensorflow/lite/delegates/gpu/cl/kernels/concat_z.cc:184–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184Status ConcatZ::BindArguments() {
185 kernel_.ResetBindingCounter();
186 for (int i = 0; i < channels_.size(); ++i) {
187 RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[i]->GetMemoryPtr()));
188 }
189 RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr()));
190 RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_));
191 for (int i = 0; i < channels_.size(); ++i) {
192 int4 size(src_[i]->Width(), src_[i]->Height(), channels_[i],
193 IntegralDivideRoundUp(channels_[i], 4));
194 RETURN_IF_ERROR(kernel_.SetBytesAuto(size));
195 }
196 RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth()));
197 return OkStatus();
198}
199
200int3 ConcatZ::GetGridSize() const {
201 const int grid_x = dst_[0]->Width();

Callers

nothing calls this directly

Calls 11

BindArgsFunction · 0.85
OkStatusFunction · 0.85
ResetBindingCounterMethod · 0.80
SetMemoryAutoMethod · 0.80
WidthMethod · 0.80
HeightMethod · 0.80
GetSizeWithDepthMethod · 0.80
IntegralDivideRoundUpFunction · 0.50
sizeMethod · 0.45
GetMemoryPtrMethod · 0.45
SetBytesAutoMethod · 0.45

Tested by

no test coverage detected