simple_sequence.h#
-
namespace ONNX_LIGHT_NAMESPACE
-
namespace onnx_backend_test
-
struct Sequence#
- #include <simple_sequence.h>
Sequence — minimal runtime tensor sequence used by backend test cases and reference kernel implementations.
Companion to :cpp:struct:
Tensor: whereTensorcarries a single tensor value,Sequencecarries an ordered list of tensors that share a common element type.Sequenceis intentionally separate fromTensorProto/SequenceProtoand from :cpp:class:onnx_optim::OptimSequence: it is the runtime value of a sequence-typed graph edge (analogous toTensorbeing the runtime value of a tensor-typed edge), without any protobuf dependency.The struct owns its underlying
Tensorelements: copying or destroying theSequencecopies or destroys its elements too.Public Functions
-
Sequence() = default#
-
inline bool empty() const noexcept#
truewhen the sequence contains no tensors.
Public Members
-
std::string name#
Optional name of the sequence (input/output name in the test model). May be left empty for intermediate values.
-
int32_t elem_type = 0#
Element data type shared by every tensor stored in
values, expressed as aTensorProto::DataTypeinteger value. EqualsTensorProto::DataType::UNDEFINED(0) whenvaluesis empty and the element type cannot be inferred.
-
Sequence() = default#
-
struct Sequence#
-
namespace onnx_backend_test