TextFileWriter write training/validation/test tuples in CSV file.
More...
#include <writer.h>
|
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
|
|
virtual | ~Writer () |
| In case that users forget to call Close() to release resources, e.g., memory, you can release them here. More...
|
|
TextFileWriter write training/validation/test tuples in CSV file.
◆ Close()
void singa::io::TextFileWriter::Close |
( |
| ) |
|
|
overridevirtual |
◆ Flush()
void singa::io::TextFileWriter::Flush |
( |
| ) |
|
|
overridevirtual |
◆ Open()
bool singa::io::TextFileWriter::Open |
( |
const std::string & |
path, |
|
|
Mode |
mode |
|
) |
| |
|
overridevirtual |
◆ Write()
bool singa::io::TextFileWriter::Write |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following file:
- /home/moaz/incubator-singa/include/singa/io/writer.h