__aicore__ inline void SetTensorA(const GlobalTensor<SrcAT>& gm, bool isTransposeA = false) __aicore__ inline void SetTensorA(const LocalTensor<SrcAT>& leftMatrix, bool isTransposeA = false) __aicore__ inline void SetTensorA(SrcAT aScalar)
Table 1 Parameters
| Parameter | Input/Output | Description |
|---|---|---|
| gm | Input | Initial address of matrix A in the Global Memory. For Kirin 9020 and Kirin 9030 series processors, the supported data type is half. |
| leftMatrix | Input | Initial address of matrix A in the TSCM or VECOUT. For Kirin 9020 and Kirin 9030 series processors, the supported data type is half. |
| aScalar | Input | Value set in matrix A. Scalar data can be passed. The passed scalar data is expanded into a tensor with the shape of [1, K] to participate in matrix multiplication. The tensor values are all scalar values. For example, a developer can implement a reduce sum operation on matrix B in the K direction by setting aScalar to 1. For Kirin 9020 and Kirin 9030 series processors, the supported data type is half. |
| isTransposeA | Input | Whether matrix A should be transposed. NOTE - If MatmulType ISTRANS of matrix A is set to true, this parameter can be set to either true or false at runtime, allowing for alternating use of transposed and non-transposed matrix A. - If MatmulType ISTRANS of matrix A is set to false, this parameter can only be set to false. If it is forcibly set to true, the precision will be abnormal. |