set_exception_catch

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

Enables or disables the user exception catch function.

Prototype

1
set_exception_catch(self, enable_exception_catch: bool = False)

Parameters

Parameter

Input/Output

Description

enable_exception_catch

bool

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

  • True: enabled
  • False: disabled

Default value: False

Returns

None

Examples

1
2
3
import dataflow as df
graph = df.FlowGraph(...)
graph.enable_exception_catch(True)

Constraints

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