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

Method BindArguments

tensorflow/lite/delegates/gpu/cl/kernels/padding.cc:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119Status Padding::BindArguments() {
120 kernel_.ResetBindingCounter();
121 RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr()));
122 RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_));
123 RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr()));
124 RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth()));
125 RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth()));
126 RETURN_IF_ERROR(kernel_.SetBytesAuto(prepended_));
127 return OkStatus();
128}
129
130int3 Padding::GetGridSize() const {
131 const int grid_x = dst_[0]->Width();

Callers

nothing calls this directly

Calls 7

BindArgsFunction · 0.85
OkStatusFunction · 0.85
ResetBindingCounterMethod · 0.80
SetMemoryAutoMethod · 0.80
GetSizeWithDepthMethod · 0.80
GetMemoryPtrMethod · 0.45
SetBytesAutoMethod · 0.45

Tested by

no test coverage detected