From f4dbee5523dc5816480f3c97cdb7192ceaec9dfc Mon Sep 17 00:00:00 2001 From: tqchen Date: Thu, 9 Apr 2015 08:45:13 -0700 Subject: [PATCH] Squashed 'subtree/rabit/' changes from e08542c..50a66b3 50a66b3 fix empty engine git-subtree-dir: subtree/rabit git-subtree-split: 50a66b3855200baaab6db79a327f26e1b0d35ea9 --- src/engine_empty.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine_empty.cc b/src/engine_empty.cc index 35e2a07d1..5fc16d9f4 100644 --- a/src/engine_empty.cc +++ b/src/engine_empty.cc @@ -34,15 +34,15 @@ class EmptyEngine : public IEngine { virtual void InitAfterException(void) { utils::Error("EmptyEngine is not fault tolerant"); } - virtual int LoadCheckPoint(ISerializable *global_model, - ISerializable *local_model = NULL) { + virtual int LoadCheckPoint(Serializable *global_model, + Serializable *local_model = NULL) { return 0; } - virtual void CheckPoint(const ISerializable *global_model, - const ISerializable *local_model = NULL) { + virtual void CheckPoint(const Serializable *global_model, + const Serializable *local_model = NULL) { version_number += 1; } - virtual void LazyCheckPoint(const ISerializable *global_model) { + virtual void LazyCheckPoint(const Serializable *global_model) { version_number += 1; } virtual int VersionNumber(void) const {