SetHF32Mode
Supported Products
Product |
Supported/Unsupported |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
Sets whether to enable the HF32 mode for the MMAD computation. After this mode is enabled, FP32 data in L0A/L0B is rounded to HF32 before participating in the MMAD computation.
Prototype
1 | __aicore__ inline void SetHF32Mode(bool hf32Mode) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
hf32Mode |
Input |
Input parameter for controlling the MMAD HF32 mode. The value is of the Boolean type. The options are as follows:
|
Returns
None
Constraints
None
Example
1 2 | bool hf32Mode = true; AscendC::SetHF32Mode(hf32Mode); |
Parent topic: Matrix Computation