Metadata Utilities#
Defines exported symbols for package orbax.checkpoint.metadata.
Tree Metadata#
- class orbax.checkpoint.metadata.ArrayMetadata(name, directory, shape, sharding, dtype, storage=None)[source][source]#
Metadata describing an array.
- shape:
Tuple of integers describing the array shape.
- sharding:
ShardingMetadata to indicate how the array is sharded. ShardingMetadata is an orbax representation of jax.sharding.Sharding which stores the same properties but not require accessing real devices.
- dtype:
Dtype of array elements.
- storage:
Optional metadata describing how the array is stored in a checkpoint.
- __hash__ = None#
- __init__(name, directory, shape, sharding, dtype, storage=None)#
- class orbax.checkpoint.metadata.ScalarMetadata(name, directory, shape=(), sharding=None, dtype=None, storage=None)[source][source]#
Metadata describing a scalar value.
- dtype:
Scalar dtype.
- __hash__ = None#
- __init__(name, directory, shape=(), sharding=None, dtype=None, storage=None)#
- class orbax.checkpoint.metadata.StringMetadata(name, directory)[source][source]#
Metadata describing a string value.
- __hash__ = None#
- __init__(name, directory)#
- class orbax.checkpoint.metadata.StorageMetadata(chunk_shape, write_shape=None)[source][source]#
Metadata describing how arrays are stored in a checkpoint.
- __delattr__(name)#
Implement delattr(self, name).
- __eq__(other)#
Return self==value.
- __hash__()#
Return hash(self).
- __init__(chunk_shape, write_shape=None)#
- __setattr__(name, value)#
Implement setattr(self, name, value).