Function: get_run_mode
|
C Prototype |
aclError aclrtGetRunMode(aclrtRunMode *runMode) |
|---|---|
|
Python Function |
run_mode, ret = acl.rt.get_run_mode() |
|
Function Usage |
Obtains the current running mode of the Ascend AI Software Stack. |
|
Input Description |
None |
|
Return Value |
run_mode: int, running mode.
ret: int, error code.
|
|
Restrictions |
None |
|
Reference |
For details about the API call sequence and example, see Runtime Resource Allocation and Deallocation. |
Parent topic: Device Management