source/train/XLeader.cpp
void XLeader::SetServerModel(XConfig * config, XModel * model)
{
    XList members;
    for (int i = 0; i < jworkers.count; i++) {
        XModel * member = ((XWorkerJob*)jworkers[i])->GetModel();
        members.Add(member);
    }

    SetServerModel(config, model, &members);
}
/* 
set the server model. It distributes the server-side parameters on different devices.
>> config - the configuration
>> model - the base model*/
set the server model. It distributes the server-side parameters on different devices.
>> config - the configuration
>> model - the base model
set the server model . It distributes the server - side parameters on different devices . >> config - the configuration >> model - the base model
void XLeader::SetServerModel(XConfig * config, XModel * model)
{
    XList members;
    for (int i = 0; i < jworkers.count; i++) {
        XModel * member = ((XWorkerJob*)jworkers[i])->GetModel();
        members.Add(member);
    }
    SetServerModel(config, model, &members);
}
void XLeader :: SetServerModel ( XConfig * config , XModel * model ) { XList members ; for ( int i = 0 ; i < jworkers . count ; i ++ ) { XModel * member = ( ( XWorkerJob * ) jworkers [ i ] ) -> GetModel ( ) ; members . Add ( member ) ; } SetServerModel ( config , model , & members ) ; }
set the server model.
set the server model .