MCPcopy Create free account
hub / github.com/apple/axlearn / _checkpointer_config

Function _checkpointer_config

axlearn/common/checkpointer_test.py:69–77  ·  view source on GitHub ↗
(
    checkpointer_cls: Type[BaseCheckpointer] = Checkpointer,
)

Source from the content-addressed store, hash-verified

67
68
69def _checkpointer_config(
70 checkpointer_cls: Type[BaseCheckpointer] = Checkpointer,
71) -> BaseCheckpointer.Config:
72 # TODO(markblee): Use context manager instead of mkdtemp.
73 return checkpointer_cls.default_config().set(
74 name="test",
75 dir=tempfile.mkdtemp(),
76 keep_last_n=1,
77 )
78
79
80# pylint: disable=protected-access

Callers 15

test_save_and_restoreMethod · 0.70
test_gdaMethod · 0.70
test_custom_dictMethod · 0.70
test_input_iteratorMethod · 0.70
test_python_savableMethod · 0.70
test_grainMethod · 0.70
test_stopMethod · 0.70
test_contextMethod · 0.70

Calls 2

setMethod · 0.45
default_configMethod · 0.45

Tested by

no test coverage detected