- fix broken links and out-of-the-date content - add pydocstyle and doc8 check - remove collector.seed and collector.render
15 lines
321 B
Python
15 lines
321 B
Python
import cloudpickle
|
|
|
|
|
|
class CloudpickleWrapper(object):
|
|
"""A cloudpickle wrapper used in SubprocVectorEnv."""
|
|
|
|
def __init__(self, data):
|
|
self.data = data
|
|
|
|
def __getstate__(self):
|
|
return cloudpickle.dumps(self.data)
|
|
|
|
def __setstate__(self, data):
|
|
self.data = cloudpickle.loads(data)
|