SetExceptionCatch

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Sets whether to enable the user exception capture function.

Prototype

1
FlowGraph &SetExceptionCatch(bool enable_exception_catch)

Parameters

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.