neural_compressor.adaptor.torch_utils.layer_wise_quant.modified_pickle
Create portable serialized representations of Python objects.
See module copyreg for a mechanism for registering custom picklers. See module pickletools source for extensive comments.
Classes:
Pickler Unpickler
Functions:
dump(object, file) dumps(object) -> string load(file) -> object loads(string) -> object
Misc variables:
__version__ format_version compatible_formats
Module Contents
- exception neural_compressor.adaptor.torch_utils.layer_wise_quant.modified_pickle.PickleError[source]
A common base class for the other pickling exceptions.
- exception neural_compressor.adaptor.torch_utils.layer_wise_quant.modified_pickle.PicklingError[source]
This exception is raised when an unpicklable object is passed to the dump() method.
- exception neural_compressor.adaptor.torch_utils.layer_wise_quant.modified_pickle.UnpicklingError[source]
This exception is raised when there is a problem unpickling an object, such as a security violation.
Note that other exceptions may also be raised during unpickling, including (but not necessarily limited to) AttributeError, EOFError, ImportError, and IndexError.