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

Function AlignByN

tensorflow/lite/delegates/gpu/common/util.h:43–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41// @param n must be greater than zero
42template <typename T, typename N>
43T AlignByN(T number, N n) {
44 return IntegralDivideRoundUp(number, n) * n;
45}
46
47} // namespace gpu
48} // namespace tflite

Callers 15

ToBytesVectorFunction · 0.85
BytesForPHWC4Function · 0.85
AddMethod · 0.85
WriteDataBHWCMethod · 0.85
ReadDataBHWCMethod · 0.85
AllocateTensorMemoryFunction · 0.85
DispatchImplicitMethod · 0.85
UploadWeightsMethod · 0.85
RearrangeWeightsDataMethod · 0.85
UploadWeightsMethod · 0.85
RearrangeWeightsFP16Method · 0.85
RearrangeWeightsFP32Method · 0.85

Calls 1

IntegralDivideRoundUpFunction · 0.70

Tested by 1

TESTFunction · 0.68