--enable_single_stream

Applicable Products

  • Ascend 950PR/Ascend 950DT: supported
  • Atlas A3 training products/Atlas A3 inference products: supported
  • Atlas A2 training products/Atlas A2 inference products: supported
  • Atlas 200I/500 A2 inference products: not supported
  • Atlas inference products: supported
  • Atlas training products: supported

Description

Specifies whether to enable in-order single-stream serial execution of model inference in static-shape scenarios.

Streams preserve the order of a stack of asynchronous operations being executed on the device.

See Also

None

Arguments

Values:

  • true: Enables in-order single-stream serial execution of model inference.
  • false (default): Disables in-order single-stream serial execution of model inference.

Restrictions:

If the model contains the Cmo operator and the following control operators, the single-stream feature cannot be used. In this case, use the default value false.

  • Merge
  • Switch
  • Enter
  • RefEnter

Suggestions and Benefits

None

Example

--enable_single_stream=true

Restrictions

None