Apache Singa
A General Distributed Deep Learning Library
|
Channel for appending metrics or other information into files or screen. More...
#include <channel.h>
Public Member Functions | |
Channel (const std::string &name) | |
const std::string & | GetName () |
Return the channel name, which is also used for naming the output file. | |
void | EnableDestStderr (bool enable) |
Disabled by default. | |
void | EnableDestFile (bool enable) |
Enabled by default. | |
void | SetDestFilePath (const std::string &file) |
Reset the output file path. More... | |
void | Send (const std::string &message) |
Append a string message. | |
void | Send (const google::protobuf::Message &message) |
Append a protobuf message. | |
Channel for appending metrics or other information into files or screen.
void singa::Channel::SetDestFilePath | ( | const std::string & | file | ) |
Reset the output file path.
The dest file is named as global dir + channel name by default.