Semantic Struct
Discriminated union of "what this tensor represents". More...
Declaration
Included Headers
Public Member Attributes Index
| std::optional< ImageSpec > | image |
|
Set for image tensors. More... | |
| std::optional< AudioSpec > | audio |
|
Set for audio tensors. More... | |
| std::optional< TokensSpec > | tokens |
|
Set for token-stream tensors (NLP). More... | |
| std::optional< TextSpec > | text |
|
Set for UTF-8 text tensors. More... | |
| std::optional< ByteStreamSpec > | byte_stream |
|
Set for opaque raw-byte tensors. More... | |
| std::optional< TessSpec > | tess |
|
Set for tessellated tile-layout tensors. More... | |
| std::optional< EncodedSpec > | encoded |
|
Set for encoded-stream tensors (H.264, etc.). More... | |
| std::optional< QuantSpec > | quant |
|
Set for quantized integer tensors. More... | |
| std::optional< PreprocessRuntimeMeta > | preprocess |
|
Set when the tensor was produced by a preprocess stage. More... | |
Description
Discriminated union of "what this tensor represents".
A single tensor can be image data, audio, tokens, an opaque byte stream, a tessellated tile, an encoded video frame, a quantization payload, or a preprocessing residue — and sometimes more than one at once (e.g., quantized image data). Each spec is an std::optional; only the relevant ones are set. Consumers query the optional that matters to them.
Definition at line 322 of file TensorCore.h.
Public Member Attributes
audio
|
Set for audio tensors.
Definition at line 324 of file TensorCore.h.
byte_stream
|
Set for opaque raw-byte tensors.
Definition at line 327 of file TensorCore.h.
encoded
|
Set for encoded-stream tensors (H.264, etc.).
Definition at line 329 of file TensorCore.h.
image
|
Set for image tensors.
Definition at line 323 of file TensorCore.h.
preprocess
|
Set when the tensor was produced by a preprocess stage.
Definition at line 332 of file TensorCore.h.
quant
|
Set for quantized integer tensors.
Definition at line 330 of file TensorCore.h.
tess
|
Set for tessellated tile-layout tensors.
Definition at line 328 of file TensorCore.h.
text
|
Set for UTF-8 text tensors.
Definition at line 326 of file TensorCore.h.
tokens
|
Set for token-stream tensors (NLP).
Definition at line 325 of file TensorCore.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.