DisableBias

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

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

Examples

1
2
3
4
5
6
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);
mm.End();