Apache Singa
A General Distributed Deep Learning Library
|
Convert values from tensors into a csv formated string. More...
#include <encoder.h>
Public Member Functions | |
void | Setup (const EncoderConf &conf) override |
std::string | Encode (vector< Tensor > &data) override |
'data' has two tesors, one for the data vector (1D) and one for the label. More... | |
Convert values from tensors into a csv formated string.
|
overridevirtual |
'data' has two tesors, one for the data vector (1D) and one for the label.
The data tensor's data type is kFloat. The label tensor's data type is kInt.
Implements singa::Encoder.