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

Function GetMaskForLastPlane

tensorflow/lite/delegates/gpu/cl/kernels/util.cc:401–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401float4 GetMaskForLastPlane(int channels) {
402 float4 mask = float4(0.0f);
403 const int reminder = channels % 4 == 0 ? 4 : channels % 4;
404 for (int i = 0; i < reminder; ++i) {
405 mask[i] = 1.0f;
406 }
407 return mask;
408}
409
410} // namespace cl
411} // namespace gpu

Callers 2

BindArgumentsMethod · 0.85
AddToQueueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected