Function: get_run_mode
Description
Obtains the current run mode of the Ascend AI Software Stack.
Prototype
- C Prototype
1aclError aclrtGetRunMode(aclrtRunMode *runMode)
- Python Function
1run_mode, ret = acl.rt.get_run_mode()
Parameters
|
Parameter |
Description |
|---|---|
|
run_mode |
Int, running mode. For details about the type definition, see aclrtRunMode. |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |
Parent topic: Device Management