SetHF32TransMode
Supported Products
Product |
Supported/Unsupported |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
Sets the HF32 rounding mode. You need to enable the HF32 rounding mode by using SetHF32Mode first.
Prototype
1 | __aicore__ inline void SetHF32TransMode(bool hf32TransMode) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
hf32TransMode |
Input |
Input parameter for controlling the MMAD HF32 rounding mode. The value is of the Boolean type. The options are as follows:
|
Returns
None
Constraints
None
Example
1 2 | bool hf32TransMode = true; AscendC::SetHF32TransMode(hf32TransMode); |
Parent topic: Matrix Computation