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

Method BindArguments

tensorflow/lite/delegates/gpu/cl/kernels/reshape.cc:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104Status Reshape::BindArguments() {
105 kernel_.ResetBindingCounter();
106 RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr()));
107 RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_));
108 RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr()));
109 RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth()));
110 RETURN_IF_ERROR(kernel_.SetBytesAuto(dst_[0]->GetSizeWithDepth()));
111 const int2 plane_size = int2(src_[0]->Width() * src_[0]->Channels(),
112 dst_[0]->Width() * dst_[0]->Channels());
113 RETURN_IF_ERROR(kernel_.SetBytesAuto(plane_size));
114
115 return OkStatus();
116}
117
118int3 Reshape::GetGridSize() const {
119 const int grid_x = dst_[0]->Width();

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected