ResetMask
Applicability
Product |
Supported/Unsupported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
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(); |
Parent topic: Mask Operations