operator_sets_nn_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 nn
Functions
-
std::string MakeAveragePoolDoc(int since_version)#
Returns the documentation string for the AveragePool operator at the given opset version.
- Parameters:
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the AveragePool operator.
-
std::string MakeMaxPoolDoc(int since_version)#
Returns the documentation string for the MaxPool operator at the given opset version (1, 8, 10, 11, 12, or 22). The text mirrors the upstream ONNX
PoolOpSchemaGenerator_*doc templates withname=MaxPool,opName=maxand the additional max-pool-specific description.
-
std::string MakeMaxUnpoolDoc(int since_version)#
Returns the documentation string for the MaxUnpool operator at the given opset version (9, 11, or 22). The text is identical for every opset and matches the upstream
kDoc_MaxUnpool_ver11string.
-
std::string MakeMaxRoiPoolDoc(int since_version)#
Returns the documentation string for the MaxRoiPool operator at the given opset version (1 or 22). The text is identical for both opsets and matches the upstream
RoiPoolOpSchemaGeneratortemplate instantiated withname="max".
-
std::string MakeGlobalAveragePoolDoc(int since_version)#
Returns the documentation string for the GlobalAveragePool operator at the given opset version (1 or 22).
-
std::string MakeGlobalMaxPoolDoc(int since_version)#
Returns the documentation string for the GlobalMaxPool operator at the given opset version (1 or 22).
-
std::string MakeGlobalLpPoolDoc(int since_version)#
Returns the documentation string for the GlobalLpPool operator at the given opset version (1, 2, or 22).
-
std::string MakeLpPoolDoc(int since_version)#
Returns the documentation string for the LpPool operator at the given opset version (1, 2, 11, 18, or 22). The v1 text differs slightly from v2/v11 (v1 has the upstream
across the / the tensorduplication typo), and v18/v22 share a longer text with explicit output-shape formulas.
-
std::string MakeLRNDoc(int since_version)#
Returns the documentation string for the LRN (Local Response Normalization) operator at the given opset version (1 or 13). The opset 1 text uses bare identifiers while the opset 13 text wraps them in Markdown backticks.
-
std::string MakeLpNormalizationDoc(int since_version)#
Returns the documentation string for the LpNormalization operator at the given opset version (1 or 22). The text is identical for both opsets and matches the upstream
kDoc_LpNormalization_ver1string.
-
std::string MakeRNNDoc(int since_version)#
Returns the documentation string for the RNN operator at the given opset version (1, 7, 14, or 22).
-
std::string MakeGRUDoc(int since_version)#
Returns the documentation string for the GRU operator at the given opset version (1, 3, 7, 14, or 22).
-
std::string MakeLSTMDoc(int since_version)#
Returns the documentation string for the LSTM operator at the given opset version (1, 7, 14, or 22).
-
std::string MakeBatchNormalizationDoc(int since_version)#
Returns the documentation string for the BatchNormalization operator at the given opset version (1, 6, 7, 9, 14, or 15).
-
std::string MakeInstanceNormalizationDoc(int since_version)#
Returns the documentation string for the InstanceNormalization operator at the given opset version (1, 6, or 22). The text is identical for every opset and matches the upstream
kDoc_InstanceNormalization_ver6string.
-
std::string MakeGroupNormalizationDoc(int since_version)#
Returns the documentation string for the GroupNormalization operator at the given opset version (18 or 21).
-
std::string MakeMeanVarianceNormalizationDoc(int since_version)#
Returns the documentation string for the MeanVarianceNormalization operator at the given opset version (9 or 13).
-
std::string MakeFlattenDoc(int since_version)#
Returns the documentation string for the Flatten operator at the given opset version (1, 9, 11, 13, 21, 23, 24, or 25). The text is identical for every opset and matches the upstream
kDoc_Flatten_ver24string.
-
std::string MakeAttentionDoc(int since_version)#
Returns the documentation string for the Attention operator at the given opset version (23 or 24).
-
std::string MakeRotaryEmbeddingDoc(int since_version)#
Returns the documentation string for the RotaryEmbedding operator at the given opset version (23). Mirrors the upstream
RotaryEmbedding_ver23_docstring.
-
std::string MakeCausalConvWithStateDoc(int since_version)#
Returns the documentation string for the CausalConvWithState operator at the given opset version (27). Mirrors the upstream
CausalConvWithState_ver27_docstring.
-
std::string MakeRMSNormalizationDoc(int since_version)#
Returns the documentation string for the RMSNormalization operator at the given opset version (23). Mirrors the upstream
RMSNormalization_ver23_docstring.
-
std::string MakeLayerNormalizationDoc(int since_version)#
Returns the documentation string for the LayerNormalization operator at the given opset version (17). Mirrors the upstream
LayerNormalization_ver17_docstring.
-
std::string MakeDeformConvDoc(int since_version)#
Returns the documentation string for the DeformConv operator at the given opset version (19 or 22). The text is identical for both opsets and matches the upstream
kDoc_DeformConv_ver19string.
-
std::string MakeCol2ImDoc(int since_version)#
Returns the documentation string for the Col2Im operator at the given opset version (18). Matches the upstream
Col2Im_ver18_docstring.
-
std::string MakeConvDoc(int since_version)#
Returns the documentation string for the Conv operator at the given opset version (1, 11 or 22). The text is identical for every opset and matches the upstream
ConvOpSchemaGeneratordoc string.
-
std::string MakeConvIntegerDoc(int since_version)#
Returns the documentation string for the ConvInteger operator at opset 10. Matches the upstream
ConvInteger_ver10_docstring.
-
std::string MakeConvTransposeDoc(int since_version)#
Returns the documentation string for the ConvTranspose operator at the given opset version (1, 11 or 22). The opset 1 text differs slightly from 11/22 (
auto_pads != SAME_UPPERvsauto_pads == SAME_UPPERin the branch describing the output-shape derivation).
-
std::string MakeAveragePoolDoc(int since_version)#
-
namespace nn
-
namespace onnx_op