training_mode is set to 1.