Struct StaticLoss

Struct Documentation

struct StaticLoss

POD for accumulating loss values after forward/backward used in Scheduler for updating statistics.

This can only be used after a successful forward step in a computation graph that owns the assigned RationalLoss object.

Public Functions

StaticLoss()
StaticLoss(const RationalLoss &dynamic)
StaticLoss operator+(const StaticLoss &other) const
StaticLoss &operator+=(const StaticLoss &other)
void reset()

Public Members

float loss
float count