Squashed 'subtree/rabit/' changes from e08542c..50a66b3
50a66b3 fix empty engine git-subtree-dir: subtree/rabit git-subtree-split: 50a66b3855200baaab6db79a327f26e1b0d35ea9
This commit is contained in:
parent
3d11f56880
commit
f4dbee5523
@ -34,15 +34,15 @@ class EmptyEngine : public IEngine {
|
|||||||
virtual void InitAfterException(void) {
|
virtual void InitAfterException(void) {
|
||||||
utils::Error("EmptyEngine is not fault tolerant");
|
utils::Error("EmptyEngine is not fault tolerant");
|
||||||
}
|
}
|
||||||
virtual int LoadCheckPoint(ISerializable *global_model,
|
virtual int LoadCheckPoint(Serializable *global_model,
|
||||||
ISerializable *local_model = NULL) {
|
Serializable *local_model = NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
virtual void CheckPoint(const ISerializable *global_model,
|
virtual void CheckPoint(const Serializable *global_model,
|
||||||
const ISerializable *local_model = NULL) {
|
const Serializable *local_model = NULL) {
|
||||||
version_number += 1;
|
version_number += 1;
|
||||||
}
|
}
|
||||||
virtual void LazyCheckPoint(const ISerializable *global_model) {
|
virtual void LazyCheckPoint(const Serializable *global_model) {
|
||||||
version_number += 1;
|
version_number += 1;
|
||||||
}
|
}
|
||||||
virtual int VersionNumber(void) const {
|
virtual int VersionNumber(void) const {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user