include_sequence_kernels.h#
-
namespace ONNX_LIGHT_NAMESPACE
-
namespace onnx_backend_test
-
namespace kernel
-
class SequenceConstruct#
- #include <include_sequence_kernels.h>
Stacks
inputsalong a new outer axis 0 to materialize the constructed tensor sequence. All inputs must share the samedata_typeandshape; the output has shape[N, *inputs[0].shape]and contains the concatenation of the per-input byte buffers.Public Functions
-
inline explicit SequenceConstruct(const KernelContext &ctx)#
-
Sequence AsSequence(const std::vector<Tensor> &inputs) const#
Sequence-returning overload. Builds an :cpp:struct:
Sequencewhoseelem_typeis the common element type ofinputs(orUNDEFINEDwheninputsis empty) and whosevaluespreserves the input order. Unlike theTensor-returning overloads, this overload does not stack the inputs into a single buffer and does not require the inputs to share a common shape.
Public Static Functions
-
static inline constexpr bool CanRunInPlace() noexcept#
Output layout is a stacked concatenation of input byte buffers, which cannot share storage with any single input buffer.
Private Members
-
KernelContext ctx_#
-
inline explicit SequenceConstruct(const KernelContext &ctx)#
-
class SequenceConstruct#
-
namespace kernel
-
namespace onnx_backend_test