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

Method SetBytesAuto

tensorflow/lite/delegates/gpu/cl/cl_kernel.cc:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145Status CLKernel::SetBytesAuto(const void* ptr, int length) {
146 const int error_code = clSetKernelArg(kernel_, binding_counter_, length, ptr);
147 if (error_code != CL_SUCCESS) {
148 return UnknownError(absl::StrCat("Failed to set kernel arguments - ",
149 CLErrorCodeToString(error_code),
150 "(at index - ", binding_counter_, ")"));
151 }
152 binding_counter_++;
153 return OkStatus();
154}
155
156template <>
157Status CLKernel::SetBytes<FLT>(int index, const FLT& value) const {

Callers 15

BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45
BindArgumentsMethod · 0.45

Calls 4

CLErrorCodeToStringFunction · 0.85
OkStatusFunction · 0.85
UnknownErrorFunction · 0.50
StrCatFunction · 0.50

Tested by

no test coverage detected