aclrtSetOpExecuteTimeOut

The Ascend 310 AI Processor does not support this API.

Description

Sets the timeout interval for operator execution.

Restrictions

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

    Model

    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, the last configured interval is used. The maximum interval allowed is as follows:

    Model

    Maximum Timeout Interval of AI Core Operators

    Maximum Timeout Interval of AI CPU Operators

    Atlas Training Series Product

    2176 seconds

    2176 seconds

Prototype

aclError aclrtSetOpExecuteTimeOut(uint32_t timeout)

Parameters

Parameter

Input/Output

Description

timeout

Input

Timeout interval, in seconds.

0 means to use the maximum timeout interval.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.