Apache Singa
A General Distributed Deep Learning Library
Public Member Functions | List of all members
singa::Encoder Class Referenceabstract

Base encoder class that convert a set of tensors into string for storage. More...

#include <encoder.h>

Inheritance diagram for singa::Encoder:
Inheritance graph
[legend]

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...
 

Detailed Description

Base encoder class that convert a set of tensors into string for storage.

Member Function Documentation

◆ Encode()

virtual std::string singa::Encoder::Encode ( vector< Tensor > &  data)
pure virtual

Format each sample data as a string, whose structure depends on the proto definition.

Implemented in singa::CSVEncoder.


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