operator_sets_controlflow_doc.h#

namespace onnx_light

Alias that makes onnx-light headers compatible with code that references ONNX_LIGHT_NAMESPACE (the macro used in the standard onnx package).

Set to ONNX_LIGHT_NAMESPACE so both names resolve to the same namespace.

Symbol-visibility attribute for the public onnx-light C++ API.

Defined as empty because onnx-light does not require explicit __declspec(dllexport) or __attribute__((visibility("default"))) annotations — visibility is controlled at the shared-library level. The macro is provided so that vendored ONNX headers that decorate their declarations with ONNX_API compile without modification.

Namespace alias so that ONNX C++ code (and consumers such as onnxruntime) that refers to the literal onnx namespace — rather than the ONNX_NAMESPACE macro — resolves to the onnx-light namespace. The standard onnx package lives in namespace onnx; onnx-light uses onnx_light (via ONNX_LIGHT_NAMESPACE), so this alias keeps onnx-light a true drop-in. It is only introduced when the onnx-light namespace differs from onnx.

namespace onnx_op
namespace controlflow

Functions

std::string MakeIfDoc()#

Returns the documentation string for the If operator.

Returns:

Documentation string for the If operator.

std::string MakeIfOutputDescription(int since_version)#

Returns the output description string for the If operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Output description string.

std::string MakeLoopDoc(int since_version)#

Returns the documentation string for the Loop operator at the given opset version. Opset 1 uses the original wording, opset 11 introduces the loop-carried dependency formulation, and opset 13 adds the “input/output of subgraph matching is based on order” remark.

Parameters:

since_version – Opset version for which to generate the doc.

Returns:

Documentation string for the Loop operator.

std::string MakeLoopOutputDescription(int since_version)#

Returns the output description string for the Loop operator at the given opset version. Opset 13 adds the “Scan outputs must be Tensors.” sentence.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Output description string.

std::string MakeLoopBodyAttributeDescription()#

Returns the description string of the body GRAPH attribute of the Loop operator. The text is the same across the supported opset versions (1, 11, 13).

Returns:

Description string for the body attribute.

std::string MakeScanDoc(int since_version)#

Returns the documentation string for the Scan operator at the given opset version. Opset 8 uses the original wording (with sequence_lens input and a single directions attribute); opsets 9 and 11 drop the sequence_lens input and split the directions attribute into scan_input_directions / scan_output_directions, additionally adding the scan_input_axes / scan_output_axes attributes.

Parameters:

since_version – Opset version for which to generate the doc.

Returns:

Documentation string for the Scan operator.

std::string MakeScanBodyAttributeDescription()#

Returns the description string of the body GRAPH attribute of the Scan operator. The text is the same across the supported opset versions (8, 9, 11).

Returns:

Description string for the body attribute.

std::string MakeScanNumScanInputsAttributeDescription()#

Returns the description string of the num_scan_inputs INT attribute of the Scan operator. The text is the same across the supported opset versions (8, 9, 11).

Returns:

Description string for the num_scan_inputs attribute.

std::string MakeScanDirectionsAttributeDescription()#

Returns the description string of the opset-8 directions INTS attribute of the Scan operator.

Returns:

Description string for the directions attribute.

std::string MakeScanInputDirectionsAttributeDescription()#

Returns the description string of the opset-9+ scan_input_directions INTS attribute of the Scan operator.

Returns:

Description string for the scan_input_directions attribute.

std::string MakeScanOutputDirectionsAttributeDescription()#

Returns the description string of the opset-9+ scan_output_directions INTS attribute of the Scan operator.

Returns:

Description string for the scan_output_directions attribute.

std::string MakeScanInputAxesAttributeDescription()#

Returns the description string of the opset-9+ scan_input_axes INTS attribute of the Scan operator.

Returns:

Description string for the scan_input_axes attribute.

std::string MakeScanOutputAxesAttributeDescription()#

Returns the description string of the opset-9+ scan_output_axes INTS attribute of the Scan operator.

Returns:

Description string for the scan_output_axes attribute.

std::string MakeIfThenBranchAttributeDescription()#

Returns the description string of the then_branch GRAPH attribute of the If operator. The text is the same across the supported opset versions (1, 11, 13).

Returns:

Description string for the then_branch attribute.

std::string MakeIfElseBranchAttributeDescription()#

Returns the description string of the else_branch GRAPH attribute of the If operator. The text is the same across the supported opset versions (1, 11, 13).

Returns:

Description string for the else_branch attribute.