Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Utils::StepLogger Class Referenceexport

Public Member Functions

 StepLogger (std::string filename, int flush_after_steps=20)
 ~StepLogger ()
void log_step (int step, std::string formatted_msg)

Private Attributes

int flush_every_ { 20 }
std::ofstream logfile_

Constructor & Destructor Documentation

◆ StepLogger()

Mila::Utils::StepLogger::StepLogger ( std::string filename,
int flush_after_steps = 20 )
inline

◆ ~StepLogger()

Mila::Utils::StepLogger::~StepLogger ( )
inline

Member Function Documentation

◆ log_step()

void Mila::Utils::StepLogger::log_step ( int step,
std::string formatted_msg )
inline

Member Data Documentation

◆ flush_every_

int Mila::Utils::StepLogger::flush_every_ { 20 }
private

◆ logfile_

std::ofstream Mila::Utils::StepLogger::logfile_
private

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