Class anira::SpecView#
-
class SpecView#
A read-only view of a tensor spec over the anira_tensor_spec getters: what ModelConfig::input_spec / output_spec hand out (the config’s own copy, valid until the config is mutated, moved or destroyed) and what TensorSpec::view() answers over a spec being built. Every read is noexcept; an axis at or beyond ndim() reads {ANIRA_AXIS_ANY, 0}, an extent no set axis has (the rule of Tensor::extent). Trivially copyable.
Public Functions
-
inline explicit SpecView(const anira_tensor_spec *spec) noexcept#
-
inline std::string_view name() const noexcept#
The canonical name, owned by the spec.
-
inline DType dtype() const noexcept#
-
inline Role role() const noexcept#
-
inline uint32_t ndim() const noexcept#
One more than the highest axis set; a hole below it reads {ANIRA_AXIS_ANY, 0}.
-
inline Window window() const noexcept#
0, 0, 0 until TensorSpec::window ran; never the window a validation derives for a streamed spec without one (PlanReport::slots carries the window in use).
-
inline int64_t latency() const noexcept#
The model’s internal latency along the Time axis.
-
inline std::string_view state_source() const noexcept#
A State input’s source, the canonical name of its State output; empty without one.
-
inline const anira_tensor_spec *native() const noexcept#
-
struct Axis#
-
struct TimeRatio#
-
struct Window#
-
inline explicit SpecView(const anira_tensor_spec *spec) noexcept#