Function: set_op_execute_time_out

C Prototype

aclError aclrtSetOpExecuteTimeOut(uint32_t timeout)

Python Function

ret = acl.rt.set_op_execute_time_out(timeout)

Function Usage

Sets the timeout interval for operator execution.

The Atlas 200/300/500 Inference Product does not support this API.

Input Description

timeout: int, timeout interval, in seconds. 0 means to use the default timeout interval.

Return Value

ret: int, error code.

Restrictions

  • If this API is not called, the default timeout interval for operator execution is as follows.

    Version

    Default Timeout Interval of AI Core Operators

    Default Timeout Interval of AI CPU Operators

    Atlas Training Series Product

    68 seconds

    28 seconds

  • If this API is called for multiple times in a process, setting of the last time is used. The maximum time that can be set is as follows.

    Version

    Maximum Timeout Interval of AI Core Operators

    Maximum Timeout Interval of AI CPU Operators

    Atlas Training Series Product

    2176 seconds

    2176 seconds