ResetMask

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

Restores the mask value to the default (all 1s), indicating that all elements in each repeat participate in the Vector computation.

Prototype

1
__aicore__ inline void ResetMask()

Parameters

None

Returns

None

Restrictions

None

Examples

After you are done using SetVectorMask to set the mask value, use ResetMask to restore the mask value to the default value.

1
2
AscendC::SetVectorMask<half, AscendC::MaskMode::NORMAL>(128);
AscendC::ResetMask();