DisableBias
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
x |
Function
Clears the bias flag, indicating that no bias is used in Matmul computation. If the isBias parameter in the TCubeTiling structure is configured to enable the bias during initialization, calling this API will clear the bias flag, so that the bias can no longer be enabled.
Prototype
1 | __aicore__ inline void DisableBias() |
Parameters
None
Returns
None
Restrictions
None
Example
1 2 3 4 5 | REGIST_MATMUL_OBJ(&pipe, GetSysWorkSpacePtr(), mm, &tiling); mm.SetTensorA(gm_a); mm.SetTensorB(gm_b); mm.DisableBias(); //Clear the bias flag in the tiling structure. mm.IterateAll(gm_c); |
Parent topic: Matmul Kernel APIs