Function: get_op_execute_timeout
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the timeout interval of AI Core operator execution.
If AI Core operators never time out, the output value of the time_out_ms parameter is the maximum value of uint32_t.
Prototype
- C Prototype
1aclError aclrtGetOpExecuteTimeout(uint32_t *const timeoutMs)
- Python Function
1time_out_ms, ret = acl.rt.get_op_execute_timeout ()
Parameters
None
Return Values
Parameter |
Description |
|---|---|
time_out_ms |
Int, timeout interval, in milliseconds. If the timeout interval has been set by calling a set API (for example, acl.rt.set_op_execute_time_out), the actual timeout interval of the hardware is returned. Otherwise, the default timeout interval of AI Core is returned. |
ret |
Int, 0 on success; else, failure. |