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

Function NumBlocksPerSide

tensorflow/lite/experimental/ruy/block_map.h:128–131  ·  view source on GitHub ↗

Returns the number of grid subdivisions along the rows dimension (if side == kLhs) or columns dimension (if side == kRhs).

Source from the content-addressed store, hash-verified

126// Returns the number of grid subdivisions along the rows dimension (if
127// side == kLhs) or columns dimension (if side == kRhs).
128inline int NumBlocksPerSide(Side side, const BlockMap& block_map) {
129 return 1 << (block_map.num_blocks_base_log2 +
130 block_map.rectangularness_log2[side]);
131}
132
133// Returns the overall number of blocks in
134// the BlockMap. The valid index values to pass to GetBlockByIndex are the

Callers 3

RunMethod · 0.85
EnsurePackedMethod · 0.85
TrMulFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected