mirror of
https://github.com/luxfhe/docs.git
synced 2026-10-30 18:13:39 +00:00
1.8 KiB
1.8 KiB
module torus.ml.common.serialization.decoder
Custom decoder for serialization.
Global Variables
- ALL_QUANTIZED_OPS
- SUPPORTED_TORCH_ACTIVATIONS
- USE_SKOPS
- TRUSTED_SKOPS
- SERIALIZABLE_CLASSES
function object_hook
object_hook(d: Any) → Any
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 TorusEncoder class.
Args:
d(Any): The serialized value to load.
Returns:
Any: The loaded value.
Raises:
NotImplementedError: If the serialized object does not provides adump_dictmethod as expected.
class TorusDecoder
Custom json decoder to handle non-native types found in serialized Torus ML objects.
method __init__
__init__(*args, **kwargs)