Skip to main content

ClikaRT::spec::InputSpec

struct

Header: ClikaRT/graph/input_specs.h

The spec for ONE input: identified by name (preferred) or, when name is empty, by position in the model's input order, carrying either a full ShapeProfile or a set of per-dim overrides (never both).

InputSpec CONSTRAINS: it is a compile/trace directive that pins an input's dynamic dims (only inputs can be pinned; output shapes are derived consequences). TensorSpec DESCRIBES: it reports a slot's observed name/dtype/dims. Two types, two jobs.

Member functions

InputSpec()

InputSpec() =default

Declared in ClikaRT/graph/input_specs.h, line 172

InputSpec(string_view, ShapeProfile)

InputSpec(std::string_view input, ShapeProfile shape_profile)

Spec input input with a full min/opt/max shape_profile.

Declared in ClikaRT/graph/input_specs.h, line 175

InputSpec(string_view, vector<int64_t>)

InputSpec(std::string_view input, std::vector<std::int64_t> shape)

Spec input input with one fixed shape (min == opt == max).

Declared in ClikaRT/graph/input_specs.h, line 178

InputSpec(string_view, vector<DimOverride>)

InputSpec(std::string_view input, std::vector<DimOverride> overrides)

Spec input input with per-dim overrides (static dims come from the model).

Declared in ClikaRT/graph/input_specs.h, line 181

InputSpec(int32_t, ShapeProfile)

InputSpec(std::int32_t input_position, ShapeProfile shape_profile)

Spec the input at input_position with a full shape_profile.

Declared in ClikaRT/graph/input_specs.h, line 185

InputSpec(int32_t, vector<int64_t>)

InputSpec(std::int32_t input_position, std::vector<std::int64_t> shape)

Spec the input at input_position with one fixed shape.

Declared in ClikaRT/graph/input_specs.h, line 188

InputSpec(int32_t, vector<DimOverride>)

InputSpec(std::int32_t input_position, std::vector<DimOverride> overrides)

Spec the input at input_position with per-dim overrides.

Declared in ClikaRT/graph/input_specs.h, line 191

Data members

name

std::string name

empty → positional

Declared in ClikaRT/graph/input_specs.h, line 167

position

std::int32_t position = -1

used when name is empty

Declared in ClikaRT/graph/input_specs.h, line 168

profile

ShapeProfile profile

full-shape form (empty → use dim_overrides)

Declared in ClikaRT/graph/input_specs.h, line 169

dim_overrides

std::vector<DimOverride> dim_overrides

per-dim form

Declared in ClikaRT/graph/input_specs.h, line 170