函数:get_device_sat_mode
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
功能说明
查询当前Device的浮点计算结果输出模式。
函数原型
- C函数原型
1
aclError aclrtGetDeviceSatMode(aclrtFloatOverflowMode *mode)
- python函数
1
mode, ret = acl.rt.get_device_sat_mode()
参数说明
无
返回值说明
返回值 |
说明 |
---|---|
mode |
int,获取浮点计算结果输出模式,具体请参见aclrtFloatOverflowMode。 |
ret |
int,错误码,返回0表示成功,返回其它值表示失败。 |
父主题: Device管理