source/sample/transformer/train/Trainer.cpp
void Trainer::Init(NMTConfig& myConfig, NMTModel& myModel)
{
    model = &myModel;
    config = &myConfig;
}
/*
initialize the trainer
>> myModel - the model for training
>> myConfig - configurations of the NMT system
*/
initialize the trainer
>> myModel - the model for training
>> myConfig - configurations of the NMT system
initialize the trainer >> myModel - the model for training >> myConfig - configurations of the NMT system
void Trainer::Init(NMTConfig& myConfig, NMTModel& myModel)
{
    model = &myModel;
    config = &myConfig;
}
void Trainer :: Init ( NMTConfig & myConfig , NMTModel & myModel ) { model = & myModel ; config = & myConfig ; }
initialize the trainer
>> myModel - the model for training
>> myConfig - configurations of the NMT system
initialize the trainer >> myModel - the model for training >> myConfig - configurations of the NMT system