ClearBias

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product AI Core

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

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

Restrictions

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);