Function: set_ts_device
C Prototype |
aclError aclrtSetTsDevice(aclrtTsId tsId) |
|---|---|
Python Function |
ret = acl.rt.set_ts_device(ts_id) |
Function Usage |
Sets the task schedule required for the computation. |
Input Description |
ts_id: int, Task Schedule required for computation. If the Ascend AI software stack contains only the AICORE Task Schedule, this parameter is invalid and the AICORE Task Schedule is used by default.
|
Return Value |
ret: int, error code.
|
Restrictions |
None |
Parent topic: Device Management