TensorSpec.h File
TensorConstraint (alias TensorSpec) — declarative shape/dtype/device contract for tensors. More...
Included Headers
Namespaces Index
| namespace | simaai |
| namespace | neat |
Classes Index
| struct | TensorConstraint |
|
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_spec() / Model::output_spec() 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_spec, Model::output_spec
File Listing
The file content with the documentation metadata removed is:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.