source/sample/transformer/Model.cpp
void NMTModel::SetTrainingFlag(bool isTraining)
{
    encoder->SetTrainingFlag(isTraining);
    decoder->SetTrainingFlag(isTraining);
    outputLayer->SetTrainingFlag(isTraining);
}
/* set the training flags in all sub-models */
set the training flags in all sub-models
set the training flags in all sub - models
void NMTModel::SetTrainingFlag(bool isTraining)
{
    encoder->SetTrainingFlag(isTraining);
    decoder->SetTrainingFlag(isTraining);
    outputLayer->SetTrainingFlag(isTraining);
}
void NMTModel :: SetTrainingFlag ( bool isTraining ) { encoder -> SetTrainingFlag ( isTraining ) ; decoder -> SetTrainingFlag ( isTraining ) ; outputLayer -> SetTrainingFlag ( isTraining ) ; }
set the training flags in all sub-models
set the training flags in all sub - models