concrete.ml.common.serialization.decoder.md
Last updated
Last updated
concrete.ml.common.serialization.decoder
Custom decoder for serialization.
ALL_QUANTIZED_OPS
SUPPORTED_TORCH_ACTIVATIONS
USE_SKOPS
TRUSTED_SKOPS
SERIALIZABLE_CLASSES
object_hook
Define a custom object hook that enables loading any supported serialized values.
If the input's type is non-native, then we expect it to have the following format.More information is available in the ConcreteEncoder class.
Args:
d
(Any): The serialized value to load.
Returns:
Any
: The loaded value.
Raises:
NotImplementedError
: If the serialized object does not provides a dump_dict
method as expected.
ConcreteDecoder
Custom json decoder to handle non-native types found in serialized Concrete ML objects.
__init__