Skip to content

Commit d29f3f7

Browse files
BlaziusMaximusOrbax Authors
authored andcommitted
Change ValueError to NotImplementedError for unsupported partial saving replacement.
PiperOrigin-RevId: 807252930
1 parent 1d96b3f commit d29f3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

checkpoint/orbax/checkpoint/_src/handlers/base_pytree_checkpoint_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def _handle_diffs(keypath, diff):
487487
if diff.rhs is None: # Leaf was not in the on-disk metadata
488488
additions.add(keypath)
489489
else: # Leaf was also in the on-disk metadata
490-
raise ValueError(
490+
raise NotImplementedError(
491491
f'Key "{keypath}" was found in the on-disk PyTree metadata and'
492492
' supplied item. Partial saving currently does not support'
493493
' REPLACEMENT. Please reach out to the Orbax team if you need'

0 commit comments

Comments
 (0)