Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ async def validate(self, path: Path):
except BaseException as e:
raise InvalidLayoutError(
f"Failed to interpret path {path} as a V1 Orbax checkpoint."
f" due to error encountered during validation: {e}"
) from e

async def validate_pytree(
Expand All @@ -337,8 +336,7 @@ async def validate_pytree(
await self._validate_pytree(path, checkpointable_name)
except BaseException as e:
raise InvalidLayoutError(
f"Failed to interpret path {path} as a V1 Orbax PyTree"
f" checkpoint. Encountered error during validation: {e}"
f"Failed to interpret path {path} as a V1 Orbax PyTree."
) from e

async def load_pytree(
Expand Down Expand Up @@ -568,8 +566,8 @@ async def _process_load_awaitables(
except BaseException as e: # pylint:disable=broad-exception-caught
raise registration.NoEntryError(
f"Failed to load checkpointable: {name} due to incompatible"
f" handler: {handlers[name]} found in registry:"
f" handler: {type(handlers[name])} found in registry:"
f" {self._handler_registry} for abstract checkpointable:"
f" {checkpointables_to_load[name]}.\nError details: {e}"
f" {checkpointables_to_load[name]}."
) from e
return loaded_checkpointables
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ async def validate(self, path: Path) -> None:
except BaseException as e:
raise InvalidLayoutError(
f"Failed to interpret path {path} as a V0 Orbax checkpoint."
f" due to error encountered during validation: {e}"
) from e

async def validate_pytree(
Expand All @@ -284,8 +283,7 @@ async def validate_pytree(
await self._validate_pytree(path, checkpointable_name)
except BaseException as e:
raise InvalidLayoutError(
f"Failed to interpret path {path} as a V0 Orbax PyTree"
f" checkpoint. Encountered error during validation: {e}"
f"Failed to interpret path {path} as a V0 Orbax PyTree."
) from e

async def load_pytree(
Expand Down
Loading
Loading