Matmul Feature Scenarios

In addition to the basic computing capabilities of Matmul described above, you also need to master the basic knowledge and operator implementation of Matmul. In addition, Matmul matrix programming provides processing capabilities and multiple functions applicable to different scenarios. The following table lists the specific scenarios and key APIs or parameters used. For details, see the corresponding sections.

Table 2 BatchMatmul features

Feature Description

Involved API

Basic functions of BatchMatmul

BatchMatmul in the NORMAL format: IterateBatch and SetBatchInfoForNormal

BatchMatmul in the BSNGD, SBNGD, and BNGS1S2 formats: IterateBatch, SetALayout, SetBLayout, SetCLayout, and SetBatchNum

BatchMatmul reusing bias matrix

GetMMConfig, IterateBatch, and SetBatchInfoForNormal