parameters: (emitter, output_type, aligned, rows, cols, leftovers)
docstring: Build one gemm function for given row, col, and depth leftovers.
docstring_summary: Build one gemm function for given row, col, and depth leftovers.
docstring_tokens: Build one gemm function for given row col and depth leftovers .
function: def GenerateGemm(emitter, output_type, aligned, rows, cols, leftovers):
    """Build one gemm function for given row, col, and depth leftovers."""
    emitter.EmitFunctionBeginA(
        BuildName(output_type, aligned, rows, cols, leftovers),
        GetStridedGemmParameters(output_type), 'void')
  
    emitter.EmitAssert('m %% 3 == %d' % rows)
    emitter.EmitAssert('n %% 3 == %d' % cols)
    emitter.EmitAssert('k %% 8 == %d' % leftovers)
  
    if output_type is _QUANTIZED_8BIT:
      GenerateQuantized8BitTempsCountersAndConsts(emitter, rows)
      GenerateZipRhs(emitter, aligned, cols, leftovers)
      GenerateQuantized8BitMul(emitter, aligned, rows, cols, leftovers)
    elif output_type is _FULL_32BIT:
      GenerateFullTempsCountersAndConsts(emitter, 'std::int32_t*', rows)
      GenerateZipRhs(emitter, aligned, cols, leftovers)
      GenerateFullMul(emitter, 'int32', aligned, rows, cols, leftovers)
    elif output_type is _FULL_FLOAT:
      GenerateFullTempsCountersAndConsts(emitter, 'float*', rows)
      GenerateZipRhs(emitter, aligned, cols, leftovers)
      GenerateFullMul(emitter, 'float', aligned, rows, cols, leftovers)
    else:
      raise ConfigurationError('Unknown output type: %s' % output_type)
  
    emitter.EmitFunctionEnd()
function_tokens: def GenerateGemm ( emitter , output_type , aligned , rows , cols , leftovers ) : emitter . EmitFunctionBeginA ( BuildName ( output_type , aligned , rows , cols , leftovers ) , GetStridedGemmParameters ( output_type ) , 'void' ) emitter . EmitAssert ( 'm %% 3 == %d' % rows ) emitter . EmitAssert ( 'n %% 3 == %d' % cols ) emitter . EmitAssert ( 'k %% 8 == %d' % leftovers ) if output_type is _QUANTIZED_8BIT : GenerateQuantized8BitTempsCountersAndConsts ( emitter , rows ) GenerateZipRhs ( emitter , aligned , cols , leftovers ) GenerateQuantized8BitMul ( emitter , aligned , rows , cols , leftovers ) elif output_type is _FULL_32BIT : GenerateFullTempsCountersAndConsts ( emitter , 'std::int32_t*' , rows ) GenerateZipRhs ( emitter , aligned , cols , leftovers ) GenerateFullMul ( emitter , 'int32' , aligned , rows , cols , leftovers ) elif output_type is _FULL_FLOAT : GenerateFullTempsCountersAndConsts ( emitter , 'float*' , rows ) GenerateZipRhs ( emitter , aligned , cols , leftovers ) GenerateFullMul ( emitter , 'float' , aligned , rows , cols , leftovers ) else : raise ConfigurationError ( 'Unknown output type: %s' % output_type ) emitter . EmitFunctionEnd ( )