Mojo function
read_version
read_version[PathLike: PathLike](path: PathLike) -> VersionInfo
Reads the header of a MAX checkpoint and returns the version info.
Args:
- path (
PathLike
): Path to MAX checkpoint file.
Returns:
VersionInfo
containing the major and minor versions of the file.
Raises:
Error if the serialization header does not match.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?