ResetMask
Function Usage
Restores the mask value to the default (all 1s), indicating that all elements in each iteration participate in the Vector computation.
Prototype
1 | __aicore__ inline void ResetMask() |
Parameters
None
Returns
None
Availability
Constraints
None
Example
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(); |
Parent topic: Mask Operations