Skip to main content

dl::SlotSpec

dl::SlotSpec

JSON-serializable description of one tensor slot (input or output). More…

#include <RuntimeModelSpec.hpp>

Public Functions

Name
TensorSlotDescriptor toDescriptor() const
Convert to a TensorSlotDescriptor, applying defaults for omitted fields.

Public Attributes

Name
std::string name
std::vector< int64_t > shape
std::optional< std::string > description
std::optional< std::string > recommended_encoder
std::optional< std::string > recommended_decoder
std::optional< bool > is_static
std::optional< bool > is_boolean_mask
std::optional< int > sequence_dim

Detailed Description

struct dl::SlotSpec;

JSON-serializable description of one tensor slot (input or output).

Maps 1:1 with the JSON schema. Optional fields fall back to [TensorSlotDescriptor](/api_generated/Classes/structdl_1_1TensorSlotDescriptor.md) defaults when converting.

Public Functions Documentation

function toDescriptor

TensorSlotDescriptor toDescriptor() const

Convert to a TensorSlotDescriptor, applying defaults for omitted fields.

Public Attributes Documentation

variable name

std::string name;

variable shape

std::vector< int64_t > shape;

variable description

std::optional< std::string > description;

variable is_static

std::optional< bool > is_static;

variable is_boolean_mask

std::optional< bool > is_boolean_mask;

variable sequence_dim

std::optional< int > sequence_dim;

Updated on 2026-11-13 at 20:25:42 +0000