SetMaskCount

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

Sets mask to counter mode. In this mode, you do not need to perceive the number of repeats or process unaligned tail blocks. You can directly pass in the amount of data to be computed. The actual number of repeats is automatically inferred by the Vector Unit.

Prototype

1
__aicore__ inline void SetMaskCount()

Parameters

None

Return Value Description

None

Constraints

In counter mode, you need to call SetMaskNorm to restore the mask mode to the normal mode after the vector computation is complete.

Examples

For details, see Calling examples (counter mode).