Represents a persisted graph component in the graph.
name- The unique identifier for the
Resource. Used to locate the associated data from a
ModelStorage. Normally matches the name of the node which created it.
output_fingerprint- An unique identifier for a specific instantiation of a
Resource. Used to distinguish a specific persistence for the same
Resourcewhen saving to the cache.
Resource from the cache.
This automatically loads the persisted resource into the given
node_name- The node name of the
directory- The directory with the cached
ModelStoragewhich the cached
Resourcewill be added to so that the
Resourceis accessible for other graph nodes.
ModelStorage0 - The fingerprint of the cached
The ready-to-use and accessible
Resource to the cache.
directory- The directory which receives the persisted
model_storage- The model storage which currently contains the persisted
Provides fingerprint for
A unique fingerprint is created on initialization of a
Resource however we
also allow a value to be provided for when we retrieve a
Resource from the