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

Method BindArguments

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

Source from the content-addressed store, hash-verified

123}
124
125Status ElementwiseOperation::BindArguments() {
126 kernel_.ResetBindingCounter();
127 RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr()));
128 RETURN_IF_ERROR(BindArguments(&kernel_));
129 RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_));
130 RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr()));
131 RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth()));
132 return OkStatus();
133}
134
135int3 ElementwiseOperation::GetGridSize() const {
136 const int grid_x = dst_[0]->Width();

Callers 1

BindArgsFunction · 0.45

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