VLink  2.0.0
A high-performance communication middleware
Tensor Struct Reference

248-byte POD container holding a dense N-D tensor plus shape / dtype / device metadata. More...

#include <tensor.h>

Collaboration diagram for Tensor:

Detailed Description

248-byte POD container holding a dense N-D tensor plus shape / dtype / device metadata.

The struct size is locked at 248 bytes on 64-bit targets via static_assert. Up to kMaxRank dimensions are supported; the shape and stride arrays are inline so that strided slices round-trip without extra metadata.


The documentation for this struct was generated from the following file: