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

Function Get3DSizeForPHWO4I4

tensorflow/lite/delegates/gpu/common/convert.cc:107–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107uint3 Get3DSizeForPHWO4I4(const OHWI& shape) {
108 return uint3(AlignByN(shape.i, 4), shape.h * shape.w,
109 IntegralDivideRoundUp(shape.o, 4));
110}
111
112// Layout is Po,H,W,OI4x4.
113Status ConvertToPHWO4I4(absl::Span<const float> in, const IHWO& shape,

Callers 2

GenerateCodeMethod · 0.85
GenerateCodeMethod · 0.85

Calls 2

AlignByNFunction · 0.85
IntegralDivideRoundUpFunction · 0.70

Tested by

no test coverage detected