include_tensor_cases.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.

Maps the upstream compatibility macro to onnx-light’s explicit proto ABI annotation. This keeps declarations from vendored ONNX headers visible when lib_onnx_proto uses hidden visibility by default.

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_backend_test

Functions

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterConcatCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Concat backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterCastCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Cast backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterCastLikeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the CastLike backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterBitCastCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the BitCast backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterAffineGridCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the AffineGrid backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterGridSampleCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the GridSample backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterExpandCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Expand backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterReshapeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Reshape backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterSliceCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Slice backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterTileCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Tile backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterPadCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Pad backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterUpsampleCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Upsample backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterResizeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Resize backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterTransposeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Transpose backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterTriluCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Trilu backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterCenterCropPadCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the CenterCropPad backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterReverseSequenceCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the ReverseSequence backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterDepthToSpaceCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the DepthToSpace backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterSpaceToDepthCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the SpaceToDepth backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterSqueezeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Squeeze backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterUnsqueezeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Unsqueeze backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterNonZeroCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the NonZero backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterOneHotCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the OneHot backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterUniqueCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Unique backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterShapeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Shape backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterSizeCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Size backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterIdentityCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Identity backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterGatherCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Gather backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterGatherElementsCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the GatherElements backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterGatherNDCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the GatherND backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterCompressCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Compress backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterSplitCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the Split backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterTensorScatterCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the TensorScatter backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterScatterElementsCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the ScatterElements backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterScatterCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the deprecated Scatter (opset 9, deprecated since opset 11) backend test node case(s).

ONNX_LIGHT_BACKEND_TEST_LOCAL void RegisterScatterNDCases(std::vector<TestCase> &registry, TestMode mode = TestMode::TEST)#

Registers the ScatterND backend test node case(s).

void CollectTensorTestCases(std::vector<TestCase> &registry, const std::string &op_type = "", TestMode mode = TestMode::TEST)#

Collects all tensor op category backend test node cases by invoking every Register*Cases helper declared in this header.