Skip to content

关于第三章Pytorch简单实现 #14

Description

@Guncuke

初始化服务器模型的时候使用了self.global_model = models.get_model(self.conf["model_name"])
但是在添加参与客户端的时候,为什么也是使用self.local_model = models.get_model(self.conf["model_name"])
初始化函数参数里的model没有被使用,我觉得应该改为self.local_model=model, local_train函数不需要model参数,在前面每个通讯选中参与者时将参与者的self.model设置成新的全局模型会不会好一点。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions