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

Method BindArguments

tensorflow/lite/delegates/gpu/cl/kernels/softmax.cc:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102Status Softmax::BindArguments() {
103 kernel_.ResetBindingCounter();
104 RETURN_IF_ERROR(kernel_.SetMemoryAuto(src_[0]->GetMemoryPtr()));
105 RETURN_IF_ERROR(BindArgs(&kernel_, linked_operations_));
106 RETURN_IF_ERROR(kernel_.SetMemoryAuto(dst_[0]->GetMemoryPtr()));
107 RETURN_IF_ERROR(kernel_.SetBytesAuto(src_[0]->GetSizeWithDepth()));
108 RETURN_IF_ERROR(
109 kernel_.SetBytesAuto(GetMaskForLastPlane(src_[0]->Channels())));
110 return OkStatus();
111}
112
113int3 Softmax::GetGridSize() const {
114 const int grid_x = dst_[0]->Width();

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected