libdl  0.0.1
Simple yet powerful deep learning
Loading...
Searching...
No Matches
dl::TrainerSubject Class Reference
Inheritance diagram for dl::TrainerSubject:

Public Member Functions

void stop () noexcept
 Stops any currently running training, validation and test processes.
 
bool isRunning () const noexcept
 

Protected Member Functions

void setRunning () noexcept
 

Detailed Description

Definition at line 89 of file trainer.hpp.

Constructor & Destructor Documentation

◆ TrainerSubject()

dl::TrainerSubject::TrainerSubject ( )
inlineprotectednoexcept

Definition at line 94 of file trainer.hpp.

94: stopped(false) {}

Member Function Documentation

◆ isRunning()

bool dl::TrainerSubject::isRunning ( ) const
inlinenoexcept

Definition at line 104 of file trainer.hpp.

104{ return !stopped; }

◆ setRunning()

void dl::TrainerSubject::setRunning ( )
inlineprotectednoexcept

Definition at line 95 of file trainer.hpp.

95{ stopped = false; }

◆ stop()

void dl::TrainerSubject::stop ( )
inlinenoexcept

Stops any currently running training, validation and test processes.

They may not immediately stop or be interrupted but run until the next step finished.

Definition at line 102 of file trainer.hpp.

102{ stopped = true; }

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