orbax icon indicating copy to clipboard operation
orbax copied to clipboard

Add TypeHandlers to regeister default SaveArg/RestoreArgs.

Open copybara-service[bot] opened this issue 2 years ago • 0 comments

Add TypeHandlers to regeister default SaveArg/RestoreArgs.

This allows users to save with Checkpointer.save(..., save_arg=None) (or restore with restore_arg=None), and have the argument automatically be converted to the default SaveArg/RestoreArg for each TypeHandler.

copybara-service[bot] avatar Sep 07 '23 20:09 copybara-service[bot]