Skip to main content

TensorSpec.h File

TensorConstraint (alias TensorSpec) — declarative shape/dtype/device contract for tensors. More...

Included Headers

#include "pipeline/TensorCore.h" #include <optional> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat

Classes Index

structTensorConstraint

Declarative tensor contract — describes the shape/dtype/device/format a tensor must satisfy. More...

Description

TensorConstraint (alias TensorSpec) — declarative shape/dtype/device contract for tensors.

TensorConstraint (typedef'd as TensorSpec from Model.h) is the declarative description of what kind of tensor a function expects or produces. Used by Model::input_specs() / Model::output_specs() for introspection and by validation code to assert that a tensor meets the model's contract. Supports flexible matching: dtype lists, dynamic shape dims (-1 = any), device requirements, image-format hints, and segment requirements.

See Also

Tensor (the value type) in TensorCore.h

See Also

Model::input_specs, Model::output_specs


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.