How to use the cloudpickle.CloudPickler.__init__ function in cloudpickle

To help you get started, we’ve selected a few cloudpickle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tensorflow / probability / tensorflow_probability / python / layers / distribution_layer.py View on Github external
def __init__(self, out_file, protocol=None):
    CloudPickler.__init__(self, out_file, protocol)
github idaholab / raven / framework / contrib / cloud / serialization / pickledebug.py View on Github external
def __init__(self, file, protocol=None):
        CloudPickler.__init__(self,file,protocol)
        self.file = file
        self.traceStack = [] #stack to track as objects are added
        self.objSizes = {} #sizes of objects after pickling including sub data
        self.objChildren = {} #objects pickled under this ID
        self.lastobj = None
        self.aborting = False