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

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.
 

Detailed Description

Channel for appending metrics or other information into files or screen.

Member Function Documentation

◆ SetDestFilePath()

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.


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