operator_sets_tensor_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 tensor

Functions

std::string MakeCastDoc(int since_version)#

Returns the documentation string for the Cast operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Cast operator.

std::string MakeCastInputTypeConstraintDescription(int since_version)#

Returns the input type-constraint description for the Cast operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Cast input.

std::string MakeCastOutputTypeConstraintDescription(int since_version)#

Returns the output type-constraint description for the Cast operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Cast output.

std::string MakeCastLikeDoc(int since_version)#

Returns the documentation string for the CastLike operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the CastLike operator.

std::string MakeBitCastDoc()#

Returns the documentation string for the BitCast operator (opset 26).

Returns:

Documentation string for the BitCast operator.

std::string MakeCastLikeInputTypeConstraintDescription(int since_version)#

Returns the input type-constraint description for the CastLike operator at the given opset version (applies to both T1 and T2; the upstream schema uses the same wording for both).

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the CastLike input.

std::string MakeCastLikeOutputTypeConstraintDescription(int since_version)#

Returns the output type-constraint description for the CastLike operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the CastLike output.

std::string MakeAffineGridDoc(int since_version)#

Returns the documentation string for the AffineGrid operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the AffineGrid operator.

std::string MakeAffineGridGridTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the AffineGrid theta/grid float type parameter (T1) at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for T1.

std::string MakeAffineGridSizeTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the AffineGrid size integer type parameter (T2) at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for T2.

std::string MakeGridSampleDoc(int since_version)#

Returns the documentation string for the GridSample operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the GridSample operator.

std::string MakeGridSampleInputTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the GridSample X/Y type parameter (T1) at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for T1.

std::string MakeGridSampleGridTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the GridSample grid float type parameter (T2) at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for T2.

std::string MakeConcatDoc(int since_version)#

Returns the documentation string for the Concat operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Concat operator.

std::string MakeConcatTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Concat operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Concat input/output.

std::string MakeExpandDoc(int since_version)#

Returns the documentation string for the Expand operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Expand operator.

std::string MakeExpandTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Expand operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Expand input/output.

std::string MakeSqueezeDoc(int since_version)#

Returns the documentation string for the Squeeze operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Squeeze operator.

std::string MakeSqueezeTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Squeeze operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Squeeze input/output.

std::string MakeUnsqueezeDoc(int since_version)#

Returns the documentation string for the Unsqueeze operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Unsqueeze operator.

std::string MakeUnsqueezeTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Unsqueeze operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Unsqueeze input/output.

std::string MakeNonZeroDoc(int since_version)#

Returns the documentation string for the NonZero operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the NonZero operator.

std::string MakeNonZeroTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the NonZero T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the NonZero input.

std::string MakeOneHotDoc(int since_version)#

Returns the documentation string for the OneHot operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the OneHot operator.

std::string MakeOneHotIndicesTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the OneHot T1 (indices), T2 (depth) and T3 (values/output) type parameters at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the requested OneHot type parameter.

std::string MakeOneHotDepthTypeConstraintDescription(int since_version)#
std::string MakeOneHotValuesTypeConstraintDescription(int since_version)#
std::string MakeUniqueDoc(int since_version)#

Returns the documentation string for the Unique operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Unique operator.

std::string MakeUniqueTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Unique T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Unique input/output.

std::string MakeShapeDoc(int since_version)#

Returns the documentation string for the Shape operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Shape operator.

std::string MakeShapeTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Shape T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Shape input.

std::string MakeSizeDoc(int since_version)#

Returns the documentation string for the Size operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Size operator.

std::string MakeSizeTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Size T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Size input.

std::string MakePadDoc(int since_version)#

Returns the documentation string for the Pad operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Pad operator.

std::string MakePadModeDescription(int since_version)#

Returns the description of the mode attribute for the Pad operator at the given opset version. Older versions only list constant, reflect and edge; opsets >= 19 also include wrap.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Mode-attribute description string for the Pad operator.

std::string MakePadTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Pad operator at the given opset version (applies to type parameter T).

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Pad input/output.

std::string MakeIdentityDoc(int since_version)#

Returns the documentation string for the Identity operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Identity operator.

std::string MakeIdentityTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Identity T/V type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Identity input/output.

std::string MakeTileDoc(int since_version)#

Returns the documentation string for the Tile operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Tile operator.

std::string MakeTileTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Tile operator at the given opset version (applies to type parameter T).

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Tile input/output.

std::string MakeUpsampleDoc(int since_version)#

Returns the documentation string for the Upsample operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Upsample operator.

std::string MakeUpsampleTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Upsample operator at the given opset version (applies to type parameter T).

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Upsample input/output.

std::string MakeResizeDoc(int since_version)#

Returns the documentation string for the Resize operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Resize operator.

std::string MakeResizeT1TypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Resize T1 type parameter (input X and output Y) at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Resize input/output.

std::string MakeResizeT2TypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Resize T2 type parameter (input roi) at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Resize roi input.

std::string MakeTransposeDoc(int since_version)#

Returns the documentation string for the Transpose operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Transpose operator.

std::string MakeTransposeTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Transpose operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Transpose input/output.

std::string MakeDepthToSpaceDoc(int since_version)#

Returns the documentation string for the DepthToSpace operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the DepthToSpace operator.

std::string MakeDepthToSpaceTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the DepthToSpace T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the DepthToSpace input/output.

std::string MakeSpaceToDepthDoc(int since_version)#

Returns the documentation string for the SpaceToDepth operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the SpaceToDepth operator.

std::string MakeSpaceToDepthTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the SpaceToDepth T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the SpaceToDepth input/output.

std::string MakeTriluDoc(int since_version)#

Returns the documentation string for the Trilu operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Trilu operator.

std::string MakeTriluTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Trilu operator at the given opset version (applies to type parameter T).

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Trilu input/output.

std::string MakeCenterCropPadDoc(int since_version)#

Returns the documentation string for the CenterCropPad operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the CenterCropPad operator.

std::string MakeCenterCropPadTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the CenterCropPad operator at the given opset version (applies to type parameter T).

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the CenterCropPad input/output.

std::string MakeReverseSequenceDoc(int since_version)#

Returns the documentation string for the ReverseSequence operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the ReverseSequence operator.

std::string MakeReverseSequenceTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the ReverseSequence operator at the given opset version (applies to type parameter T).

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the ReverseSequence input/output.

std::string MakeGatherDoc(int since_version)#

Returns the documentation string for the Gather operator at the given opset version.

std::string MakeGatherElementsDoc(int since_version)#

Returns the documentation string for the GatherElements operator at the given opset version.

std::string MakeGatherNDDoc(int since_version)#

Returns the documentation string for the GatherND operator at the given opset version.

std::string MakeCompressDoc(int since_version)#

Returns the documentation string for the Compress operator at the given opset version.

std::string MakeScatterElementsDoc(int since_version)#

Returns the documentation string for the ScatterElements operator at the given opset version.

std::string MakeScatterDoc(int since_version)#

Returns the documentation string for the deprecated Scatter operator at the given opset version (opset 9, deprecated since opset 11).

std::string MakeScatterNDDoc(int since_version)#

Returns the documentation string for the ScatterND operator at the given opset version.

std::string MakeTensorScatterDoc(int since_version)#

Returns the documentation string for the TensorScatter operator at the given opset version.

std::string MakeSplitDoc(int since_version)#

Returns the documentation string for the Split operator at the given opset version.

Parameters:

since_version – Opset version for which to generate the documentation.

Returns:

Documentation string for the Split operator.

std::string MakeSplitTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Split T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Split input/output.

std::string MakeCompressTypeConstraintDescription(int since_version)#

Returns the type-constraint description for the Compress T type parameter at the given opset version.

Parameters:

since_version – Opset version for which to generate the description.

Returns:

Type-constraint description string for the Compress input/output.