---
title: 函数：get_device_sat_mode
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_0012.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_0012.html
indexId: c5ba19438a5bde2c63fcaccc9863d371fbe99ca988c9618f0786ca01ff54dc1e71
---
# 函数：get_device_sat_mode

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 200I/500 A2 推理产品 | x |


#### 功能说明

查询当前Device的浮点计算结果输出模式。


#### 函数原型

- C函数原型
  1 aclError aclrtGetDeviceSatMode(aclrtFloatOverflowMode *mode)

- python函数
  1 mode, ret = acl.rt.get_device_sat_mode()


#### 参数说明

无


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| mode | int，获取浮点计算结果输出模式，具体请参见aclrtFloatOverflowMode。 |
| ret | int，错误码，返回0表示成功，返回其它值表示失败。 |
