Skip to main content

TensorCore.h File

The Tensor type — a labeled box of numbers, plus all its supporting types. More...

Included Headers

#include "pipeline/TensorTypes.h" #include <cstddef> #include <cstdint> #include <functional> #include <memory> #include <optional> #include <string> #include <stdexcept> #include <string_view> #include <utility> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat

Classes Index

structDevice

Device descriptor: type + numeric ID (for multi-device boards). More...

structImageSpec

Image-tensor metadata: pixel format and (optional) color space. More...

structAudioSpec

Audio-tensor metadata: sample rate, channel count, interleaving. More...

structTokensSpec

Token-tensor metadata for NLP-style tensors. More...

structTextSpec

UTF-8 text tensor metadata. More...

structEncodedSpec

Encoded-stream tensor metadata: which codec the bytes represent. More...

structByteStreamSpec

Opaque byte-stream tensor metadata. More...

structQuantSpec

Quantization metadata for INT8/INT16 tensors. More...

structTessSpec

Tessellation metadata — tile geometry for the MLA's tile-block layout. More...

structDetectionSpec

Detection-decoder metadata — tags tensors that carry packed detection output. More...

structPreprocessRoi

One runtime ROI window consumed by preprocessing. More...

structPreprocessAffine

Per-ROI 2×3 affine matrix from model/preprocessed coordinates to source-frame coordinates. More...

structPreprocessRuntimeMeta

Per-buffer preprocessing context — the inverse-transform breadcrumb trail. More...

structSemantic

Discriminated union of "what this tensor represents". More...

structMapping

Scoped read/write window into a TensorBuffer. More...

structSegment

One named memory segment within a multi-segment tensor buffer (e.g., separate Y / UV planes). More...

structTensorBuffer

Storage handle for a tensor — opaque container for one of four backing memory kinds. More...

structPlane

One plane of a composite (multi-plane) tensor. More...

structNv12View

Non-owning view into NV12 pixel data: Y plane + interleaved UV plane. More...

structNv12Mapped

Bundles an NV12 view with the Mapping that keeps its underlying buffer alive. More...

structI420View

Non-owning view into I420 pixel data: separate Y, U, V planes. More...

structI420Mapped

Bundles an I420 view with the Mapping that keeps its underlying buffer alive. More...

structTensorRouteMeta

Routing metadata that travels with a tensor through multi-output pipelines. More...

structTensor

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)


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.