Function: get_run_mode
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Obtains the current run mode of Ascend AI Software Stack.
Prototype
-
C Prototype
aclError aclrtGetRunMode(aclrtRunMode *runMode) -
Python Function
run_mode, ret = acl.rt.get_run_mode()
Parameters
None
Return Values
| Return Value | Description |
|---|---|
| run_mode | Int, running mode. For details about the type definition, see aclrtRunMode. |
| ret | Int, error code. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |
Reference
For details about the API call process and example, see "Runtime Resource Allocation and Deallocation" in "Application Development (Python)".