|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Named tensors that belong together, such as a model's weights or I/O. More...
#include <Tensor.hpp>
Public Member Functions | |
| TensorData * | find (std::string_view name) |
| Tensor with this exact name, or nullptr. | |
| const TensorData * | find (std::string_view name) const |
| Tensor with this exact name, or nullptr. | |
| bool | is_consistent () const |
| Whether every tensor is valid and named, with no duplicate names. | |
Public Attributes | |
| std::map< std::string, std::string > | metadata |
| std::vector< TensorData > | tensors |
Named tensors that belong together, such as a model's weights or I/O.
Mirrors a safetensors or ONNX initializer set: ordered tensors with unique names, plus free-form string metadata.
Definition at line 167 of file Tensor.hpp.