ResetMask

Applicability

Product

Supported/Unsupported

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

Return Value Description

None

Constraints

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