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

Function GetSrcBatchSize

tensorflow/lite/delegates/gpu/metal/kernels/conv.cc:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51int GetSrcBatchSize(int dst_channels) {
52 const int dst_depth = IntegralDivideRoundUp(dst_channels, 4);
53 if (dst_depth % 4 == 0) {
54 return 2;
55 } else if (dst_depth % 2 == 0) {
56 return 4;
57 } else {
58 return 8;
59 }
60}
61
62std::string GetValuesDeclarationPart(int num_output_slices, bool is_1x1) {
63 std::string code;

Callers 2

GetKernelForConvFunction · 0.85

Calls 1

IntegralDivideRoundUpFunction · 0.50

Tested by

no test coverage detected