jaxdem.utils.serialization#
Import-path encoding and restoration of checkpoint callables.
Functions
|
Import a callable from a dotted path string. |
|
Return an import path after proving it resolves to this callable. |
- jaxdem.utils.serialization.encode_callable(fn: Callable[[...], Any]) str[source]#
Return an import path after proving it resolves to this callable.
Checkpoints store callables by reference, so local functions, closures and aliases that do not round-trip by identity are not portable and are rejected at save time.