TensorCore.h File
The Tensor type — a labeled box of numbers, plus all its supporting types. More...
Included Headers
Namespaces Index
| namespace | simaai |
| namespace | neat |
Classes Index
| struct | Device |
|
Device descriptor: type + numeric ID (for multi-device boards). More... | |
| struct | ImageSpec |
|
Image-tensor metadata: pixel format and (optional) color space. More... | |
| struct | AudioSpec |
|
Audio-tensor metadata: sample rate, channel count, interleaving. More... | |
| struct | TokensSpec |
|
Token-tensor metadata for NLP-style tensors. More... | |
| struct | TextSpec |
|
UTF-8 text tensor metadata. More... | |
| struct | EncodedSpec |
|
Encoded-stream tensor metadata: which codec the bytes represent. More... | |
| struct | ByteStreamSpec |
|
Opaque byte-stream tensor metadata. More... | |
| struct | QuantSpec |
|
Quantization metadata for INT8/INT16 tensors. More... | |
| struct | TessSpec |
|
Tessellation metadata — tile geometry for the MLA's tile-block layout. More... | |
| struct | PreprocessRuntimeMeta |
|
Per-buffer preprocessing context — the inverse-transform breadcrumb trail. More... | |
| struct | Semantic |
|
Discriminated union of "what this tensor represents". More... | |
| struct | Mapping |
|
Scoped read/write window into a TensorBuffer. More... | |
| struct | Segment |
|
One named memory segment within a multi-segment tensor buffer (e.g., separate Y / UV planes). More... | |
| struct | TensorBuffer |
|
Storage handle for a tensor — opaque container for one of four backing memory kinds. More... | |
| struct | Plane |
|
One plane of a composite (multi-plane) tensor. More... | |
| struct | Nv12View |
|
Non-owning view into NV12 pixel data: Y plane + interleaved UV plane. More... | |
| struct | Nv12Mapped |
|
Bundles an NV12 view with the Mapping that keeps its underlying buffer alive. More... | |
| struct | I420View |
|
Non-owning view into I420 pixel data: separate Y, U, V planes. More... | |
| struct | I420Mapped |
|
Bundles an I420 view with the Mapping that keeps its underlying buffer alive. More... | |
| struct | TensorRouteMeta |
|
Routing metadata that travels with a tensor through multi-output pipelines. More... | |
| struct | Tensor |
|
Universal tensor type — a labeled box of numbers that flows between Nodes. More... | |
Description
The Tensor type — a labeled box of numbers, plus all its supporting types.
This is the framework's universal data carrier. A Tensor knows what numbers it holds (dtype, shape, strides_bytes), where they live (device, storage of one of four StorageKinds), and what they represent (Semantic — image, audio, tessellated tile, encoded video, quantization payload, or preprocessing residue). The Tensor's storage is typically zero-copy across processors via the unified IOMMU; this file defines the TensorBuffer abstraction that hides the per-storage-kind details.
Headline types in this file:
- Tensor — the user-facing struct.
- TensorBuffer (alias Storage) — the storage handle with map_fn for read/write.
- Mapping — a scoped read/write window into a buffer (RAII-unmap on destruction).
- Plane — per-plane info for composite formats (NV12 = Y + UV, I420 = Y + U + V).
- Semantic — discriminated union of "what this tensor means" (image, audio, tess, etc.).
- TensorRouteMeta — routing metadata used by multi-output models.
- Device / DeviceType — where the tensor lives (CPU/CVU/MLA/APU).
- See Also
"Tensors: hiding the memory mess" (§0.10 of the design deep dive)
- See Also
TensorTypes.h for dtype/layout/axis-semantic enums
- See Also
TensorSpec.h for TensorConstraint (the matching contract)
File Listing
The file content with the documentation metadata removed is:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.