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!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?