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

Function GetPHWC4Size

tensorflow/lite/delegates/gpu/gl/object.h:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169// TODO(akulik): find better place for functions below.
170
171inline uint3 GetPHWC4Size(const BHWC& shape) {
172 uint3 size;
173 size.x = shape.w;
174 size.y = shape.h;
175 size.z = shape.b * IntegralDivideRoundUp(shape.c, 4);
176 return size;
177}
178
179inline Object MakePHWC4Ref(uint32_t global_id, const BHWC& shape) {
180 return MakeObjectRef(global_id, GetPHWC4Size(shape), AccessType::READ_WRITE);

Callers 1

MakePHWC4RefFunction · 0.85

Calls 1

IntegralDivideRoundUpFunction · 0.50

Tested by

no test coverage detected