Skip to content

Commit

Permalink
fix federated learning plugin (#8027)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongou authored Jun 24, 2022
1 parent a68580e commit 0725fd6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugin/federated/engine_federated.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,14 @@ class FederatedEngine : public IEngine {
}
}

int LoadCheckPoint(Serializable *global_model, Serializable *local_model = nullptr) override {
int LoadCheckPoint() override {
return 0;
}

void CheckPoint(const Serializable *global_model,
const Serializable *local_model = nullptr) override {
void CheckPoint() override {
version_number_ += 1;
}

void LazyCheckPoint(const Serializable *global_model) override { version_number_ += 1; }

int VersionNumber() const override { return version_number_; }

/*! \brief get rank of current node */
Expand Down

0 comments on commit 0725fd6

Please sign in to comment.