Function: get_device_sat_mode

C Prototype

aclError aclrtGetDeviceSatMode(aclrtFloatOverflowMode *mode)

Python Function

mode, ret = acl.rt.get_device_sat_mode()

Function Usage

Obtains the output mode of the floating-point calculation result of the device corresponding to the current context.

The Atlas 200/300/500 Inference Product does not support this API in the current version.

The Atlas Training Series Product does not support this API in the current version.

Input Description

None

Return Value

mode: int, output mode of the floating-point calculation result. For details, see aclrtFloatOverflowMode.

ret: int, error code.

Restrictions

None