Apache Singa
A General Distributed Deep Learning Library
|
Base encoder class that convert a set of tensors into string for storage. More...
#include <encoder.h>
Public Member Functions | |
virtual void | Setup (const EncoderConf &conf) |
virtual std::string | Encode (vector< Tensor > &data)=0 |
Format each sample data as a string, whose structure depends on the proto definition. More... | |
Base encoder class that convert a set of tensors into string for storage.
|
pure virtual |
Format each sample data as a string, whose structure depends on the proto definition.
Implemented in singa::CSVEncoder.