Function: set_op_execute_time_out

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Sets the timeout interval (in seconds) for operator execution. If this API is called multiple times in a process, the last configured timeout is used. If a timeout interval is carried during operator delivery, the timeout interval takes precedence over the timeout interval set by this API.

Prototype

Parameters

Parameter

Description

timeout

Int, timeout interval, in seconds. 0 means to use the maximum timeout interval.

Return Values

Return Value

Description

ret

Int, error code. 0 on success; else, failure.

Restrictions