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

Single-shot writer of a TensorSet to one file format. More...

#include <TensorWriter.hpp>

Inheritance diagram for MayaFlux::IO::TensorWriter:
Collaboration diagram for MayaFlux::IO::TensorWriter:

Public Member Functions

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

Detailed Description

Single-shot writer of a TensorSet to one file format.

Tensors are written at their native element type in dense C order, so strided tensors are gathered first. A format that cannot represent a tensor (an element type it has no name for, a name it cannot store) refuses the whole set and reports why through get_last_error().

Definition at line 16 of file TensorWriter.hpp.


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