[mpi] add mpi into ssgplvm

This commit is contained in:
Zhenwen Dai 2014-05-14 15:07:39 +01:00
parent a702b0862b
commit d911766624
6 changed files with 165 additions and 288 deletions

View file

@ -102,7 +102,8 @@ class Cacher(object):
return Cacher(self.operation, self.limit, self.ignore_args, self.force_kwargs)
def __getstate__(self, memo=None):
raise NotImplementedError, "Trying to pickle Cacher object with function {}, pickling functions not possible.".format(str(self.operation))
return (self.limit)
# raise NotImplementedError, "Trying to pickle Cacher object with function {}, pickling functions not possible.".format(str(self.operation))
def __setstate__(self, memo=None):
raise NotImplementedError, "Trying to pickle Cacher object with function {}, pickling functions not possible.".format(str(self.operation))