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_NAMESPACEso 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 withONNX_APIcompile without modification.Namespace alias so that ONNX C++ code (and consumers such as onnxruntime) that refers to the literal
onnxnamespace — rather than theONNX_NAMESPACEmacro — resolves to the onnx-light namespace. The standard onnx package lives innamespace onnx; onnx-light usesonnx_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 fromonnx.-
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
bodyGRAPH attribute of the Loop operator. The text is the same across the supported opset versions (1, 11, 13).- Returns:
Description string for the
bodyattribute.
-
std::string MakeScanDoc(int since_version)#
Returns the documentation string for the
Scanoperator at the given opset version. Opset 8 uses the original wording (withsequence_lensinput and a singledirectionsattribute); opsets 9 and 11 drop thesequence_lensinput and split the directions attribute intoscan_input_directions/scan_output_directions, additionally adding thescan_input_axes/scan_output_axesattributes.- Parameters:
since_version – Opset version for which to generate the doc.
- Returns:
Documentation string for the
Scanoperator.
-
std::string MakeScanBodyAttributeDescription()#
Returns the description string of the
bodyGRAPH attribute of the Scan operator. The text is the same across the supported opset versions (8, 9, 11).- Returns:
Description string for the
bodyattribute.
-
std::string MakeScanNumScanInputsAttributeDescription()#
Returns the description string of the
num_scan_inputsINT 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_inputsattribute.
-
std::string MakeScanDirectionsAttributeDescription()#
Returns the description string of the opset-8
directionsINTS attribute of the Scan operator.- Returns:
Description string for the
directionsattribute.
-
std::string MakeScanInputDirectionsAttributeDescription()#
Returns the description string of the opset-9+
scan_input_directionsINTS attribute of the Scan operator.- Returns:
Description string for the
scan_input_directionsattribute.
-
std::string MakeScanOutputDirectionsAttributeDescription()#
Returns the description string of the opset-9+
scan_output_directionsINTS attribute of the Scan operator.- Returns:
Description string for the
scan_output_directionsattribute.
-
std::string MakeScanInputAxesAttributeDescription()#
Returns the description string of the opset-9+
scan_input_axesINTS attribute of the Scan operator.- Returns:
Description string for the
scan_input_axesattribute.
-
std::string MakeScanOutputAxesAttributeDescription()#
Returns the description string of the opset-9+
scan_output_axesINTS attribute of the Scan operator.- Returns:
Description string for the
scan_output_axesattribute.
-
std::string MakeIfDoc()#
-
namespace controlflow
-
namespace onnx_op