yr.InstanceCreator.list_checkpoints

yr.InstanceCreator.list_checkpoints#

InstanceCreator.list_checkpoints(namespace: str = '') list[source]#

List all checkpoints created from instances of this class.

Parameters:

namespace (str) – Namespace filter. Default is empty string.

Returns:

List of checkpoint ID strings.

Return type:

list

Example

>>> @yr.instance
... class Counter:
...     def __init__(self): self.count = 0
...
>>> checkpoints = Counter.list_checkpoints()