Skip to main content

ClikaRT::spec::ShapeProfile

struct

Header: ClikaRT/graph/input_specs.h

The shape profile of ONE input: the range of shapes the compiled graph is prepared for, as three extent lists with one entry per dimension. min is the smallest shape the input will be fed, max the largest, and opt the typical one, which the compiled graph is specialized to; min/max are validated and recorded. For a fixed shape use the single-shape constructor (min == opt == max).

Member functions

ShapeProfile()

ShapeProfile() =default

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

ShapeProfile(vector<int64_t>)

explicit ShapeProfile(std::vector<std::int64_t> shape)

A single concrete shape: min == opt == max.

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

ShapeProfile(vector<int64_t>, vector<int64_t>, vector<int64_t>)

ShapeProfile(
    std::vector<std::int64_t> min_shape,
    std::vector<std::int64_t> opt_shape,
    std::vector<std::int64_t> max_shape
)

A full profile: min_shape / opt_shape / max_shape per the struct note.

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

empty()

bool empty() const noexcept

True when all three shape lists are empty.

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

Data members

min

std::vector<std::int64_t> min

the smallest shape this input will be fed.

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

opt

std::vector<std::int64_t> opt

the shape the compiled graph specializes to.

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

max

std::vector<std::int64_t> max

the largest shape this input will be fed.

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