Function: get_run_mode
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Obtains the current running mode of the Ascend AI Software Stack.
Prototype
- C Prototype
1aclError aclrtGetRunMode(aclrtRunMode *runMode)
- Python Function
1run_mode, ret = acl.rt.get_run_mode()
Parameter Description
|
Parameter |
Description |
|---|---|
|
run_mode |
Int, running mode.
|
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |