composer.core.serializable#
Serialization interface used by checkpointing.
Classes
Interface for serialization; used by checkpointing. |
- class composer.core.serializable.Serializable[source]#
Interface for serialization; used by checkpointing.
- load_state_dict(state)[source]#
Restores the state of the object.
- Parameters
state (StateDict) โ The state of the object, as previously returned by
state_dict()
- state_dict()[source]#
Returns a dictionary representing the internal state.
The returned dictionary must be pickale-able via
torch.save()
.- Returns
StateDict โ The state of the object