SetExceptionCatch

Applicable Products

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Function Description

Sets whether to enable the user exception capture function.

Prototype

1
FlowGraph &SetExceptionCatch(bool enable_exception_catch)

Command-Line Options

Parameter

Input/Output

Description

enable_exception_catch

Input

Whether to enable the user exception capture function. The values are as follows:

  • true: enabled
  • false: disabled

Default value: false

Returns

Current object.

Exception Handling

None

Constraints

This function must be used together with the SetInputsAlignAttrs API to enable the data alignment. Otherwise, a compilation error is reported.