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

Convert values from tensors into a csv formated string. More...

#include <encoder.h>

Inheritance diagram for singa::CSVEncoder:
Inheritance graph
[legend]
Collaboration diagram for singa::CSVEncoder:
Collaboration graph
[legend]

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

Detailed Description

Convert values from tensors into a csv formated string.

Member Function Documentation

◆ Encode()

std::string singa::CSVEncoder::Encode ( vector< Tensor > &  data)
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.


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