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

Method BindArguments

tensorflow/lite/delegates/gpu/cl/kernels/max_unpooling.cc:133–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133Status MaxUnpooling::BindArguments() {
134 kernel_.ResetBindingCounter();
135 RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr()));
136 RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[1]->GetMemoryPtr()));
137 RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_));
138 RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr()));
139 RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth()));
140 RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth()));
141 RETURN_IF_ERROR(kernel_.SetBytesAuto(kernel_size_));
142 RETURN_IF_ERROR(kernel_.SetBytesAuto(padding_));
143 RETURN_IF_ERROR(kernel_.SetBytesAuto(stride_));
144
145 return OkStatus();
146}
147
148int3 MaxUnpooling::GetGridSize() const {
149 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