|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Writer for the safetensors format. More...
#include <SafetensorsFormat.hpp>
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 |
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.