MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::SafetensorsWriter Class Reference

Writer for the safetensors format. More...

#include <SafetensorsFormat.hpp>

Inheritance diagram for MayaFlux::IO::SafetensorsWriter:
Collaboration diagram for MayaFlux::IO::SafetensorsWriter:

Public Member Functions

std::string get_last_error () const override
 Reason the last write failed, or empty.
std::vector< std::string > get_supported_extensions () const override
 Extensions this format writes, without dots.
bool write (const std::string &filepath, const Kakshya::TensorSet &tensors) override
 Write every tensor in the set to a file.
Public Member Functions inherited from MayaFlux::IO::TensorWriter
virtual ~TensorWriter ()=default

Private Attributes

std::string m_last_error

Detailed Description

Writer for the safetensors format.

Orders tensors wider elements first, then by name, so every tensor stays aligned to its element size. Pads the index to eight bytes and stores the set's string metadata. Element types safetensors has no name for are refused.

Definition at line 72 of file SafetensorsFormat.hpp.


The documentation for this class was generated from the following files: