training property

bool training
getter/setter pair

Whether this module is in training mode. Layers that behave differently between training and inference (e.g. Dropout) read this flag in their call method. Defaults to training mode.

Implementation

bool training = true;