SetHF32TransMode
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Usage
Sets the HF32 rounding mode. You must first enable HF32 rounding mode using SetHF32Mode.
Prototype
1 | __aicore__ inline void SetHF32TransMode(HF32TransMode mode) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
mode |
Input |
Input parameter for controlling the MMAD HF32 rounding mode. The value is of the HF32TransMode type. The options are as follows:
|
Returns
None
Restrictions
None
Examples
Set the HF32 rounding mode. You must first enable HF32 rounding mode using SetHF32Mode.
1 | AscendC::SetHF32TransMode(HF32TransMode::NEAREST_ZERO); |
Parent topic: Cube Computation