DisableBias

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference product's AI Core

Atlas inference product's Vector Core

x

Atlas training products

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