ClearBias
Function Description
This API has the same function as DisableBias. DisableBias is recommended.
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 the Init call, calling this API will clear the bias flag, so that the bias can no longer be enabled.
Prototype
1 | __aicore__ inline void ClearBias() |
Parameters
None
Returns
None
Availability
Precautions
None
Example
1 2 3 4 5 | REGIST_MATMUL_OBJ(&pipe, GetSysWorkSpacePtr(), mm, &tiling); mm.SetTensorA(gm_a); mm.SetTensorB(gm_b); mm.ClearBias(); // Clear the bias flag in the tiling structure. mm.IterateAll(gm_c); |
Parent topic: Matmul