operator_sets_math_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 math
Functions
-
std::string MakeElementwiseMathDoc(const char *op_type, int since_version)#
Returns the documentation string for an element-wise math operator at the given opset version.
- Parameters:
op_type – Operator name (e.g. “Add”, “Mul”).
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the operator.
-
std::string MakeUnaryMathDoc(const char *op_type)#
Returns the documentation string for a unary element-wise math operator.
- Parameters:
op_type – Operator name (e.g. “Sin”, “Cos”, “Abs”).
- Returns:
Documentation string for the operator.
-
std::string MakeUnaryMathOutputDescription(const char *op_type)#
Returns the output description for a unary element-wise math operator.
- Parameters:
op_type – Operator name (e.g. “Sin”, “Cos”, “Abs”).
- Returns:
Output description string.
-
std::string MakeBlackmanWindowDoc()#
Returns the documentation string for the BlackmanWindow operator.
- Returns:
Documentation string for the BlackmanWindow operator.
-
std::string MakeHannWindowDoc()#
Returns the documentation string for the HannWindow operator.
- Returns:
Documentation string for the HannWindow operator.
-
std::string MakeHammingWindowDoc()#
Returns the documentation string for the HammingWindow operator.
- Returns:
Documentation string for the HammingWindow operator.
-
std::string MakeMelWeightMatrixDoc()#
Returns the documentation string for the MelWeightMatrix operator.
- Returns:
Documentation string for the MelWeightMatrix operator.
-
std::string MakePowDoc()#
Returns the documentation string for the Pow operator.
- Returns:
Documentation string for the Pow operator.
-
std::string MakeMatMulDoc()#
Returns the documentation string for the MatMul operator.
- Returns:
Documentation string for the MatMul operator.
-
std::string MakeMatMulIntegerDoc()#
Returns the documentation string for the MatMulInteger operator.
- Returns:
Documentation string for the MatMulInteger operator (opset 10).
-
std::string MakeGemmDoc(int since_version)#
Returns the documentation string for the Gemm operator at the given opset version.
- Parameters:
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the Gemm operator.
-
std::string MakeCumSumDoc()#
Returns the documentation string for the CumSum operator. The wording is stable across opsets 11 and 14 (only the type constraint widens).
- Returns:
Documentation string for the CumSum operator.
-
std::string MakeCumProdDoc()#
Returns the documentation string for the CumProd operator (opset 26).
- Returns:
Documentation string for the CumProd operator.
-
std::string MakeEinsumDoc()#
Returns the documentation string for the Einsum operator at opset 12 (the only opset in which Einsum was introduced).
- Returns:
Documentation string for the Einsum operator.
-
std::string MakeTopKDoc(int since_version)#
Returns the documentation string for the TopK operator at the given opset version. Opset 1 selects
kvia an integer attribute, opsets 10 and 11 passKas a 1-D tensor input. The opset-11 wording adds a stability note about how ties are broken.- Parameters:
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the TopK operator.
-
std::string MakeSumDoc(int since_version)#
Returns the documentation string for the Sum operator at the given opset version. Opsets 1 and 6 share the same wording (variadic element-wise sum with no broadcasting); opsets 8 and 13 share the wording that exposes NumPy-style multidirectional broadcasting.
- Parameters:
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the Sum operator.
-
std::string MakeMaxDoc(int since_version)#
Returns the documentation string for the Max operator at the given opset version. Opsets 1 and 6 share the legacy wording (variadic element-wise max with no broadcasting); opsets 8, 12 and 13 share the wording that exposes NumPy-style multidirectional broadcasting.
- Parameters:
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the Max operator.
-
std::string MakeMinDoc(int since_version)#
Returns the documentation string for the Min operator at the given opset version. Opsets 1 and 6 share the legacy wording (variadic element-wise min with no broadcasting); opsets 8, 12 and 13 share the wording that exposes NumPy-style multidirectional broadcasting.
- Parameters:
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the Min operator.
-
std::string MakeMeanDoc(int since_version)#
Returns the documentation string for the Mean operator at the given opset version. Opsets 1 and 6 share the legacy wording (variadic element-wise mean with no broadcasting); opsets 8 and 13 share the wording that exposes NumPy-style multidirectional broadcasting.
- Parameters:
since_version – Opset version for which to generate the documentation.
- Returns:
Documentation string for the Mean operator.
-
std::string MakeElementwiseMathDoc(const char *op_type, int since_version)#
-
namespace math
-
namespace onnx_op