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

TextFileWriter write training/validation/test tuples in CSV file. More...

#include <writer.h>

Inheritance diagram for singa::io::TextFileWriter:
Inheritance graph
[legend]
Collaboration diagram for singa::io::TextFileWriter:
Collaboration graph
[legend]

Public Member Functions

bool Open (const std::string &path, Mode mode) override
 
void Close () override
 
bool Write (const std::string &key, const std::string &value) override
 override; override; More...
 
void Flush () override
 
std::string path ()
 return path to text file
 
- Public Member Functions inherited from singa::io::Writer
virtual ~Writer ()
 In case that users forget to call Close() to release resources, e.g., memory, you can release them here. More...
 

Detailed Description

TextFileWriter write training/validation/test tuples in CSV file.

Member Function Documentation

◆ Close()

void singa::io::TextFileWriter::Close ( )
overridevirtual

Implements singa::io::Writer.

◆ Flush()

void singa::io::TextFileWriter::Flush ( )
overridevirtual

Implements singa::io::Writer.

◆ Open()

bool singa::io::TextFileWriter::Open ( const std::string &  path,
Mode  mode 
)
overridevirtual

Implements singa::io::Writer.

◆ Write()

bool singa::io::TextFileWriter::Write ( const std::string &  key,
const std::string &  value 
)
overridevirtual

override; override;

override; override;

Implements singa::io::Writer.


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