jabara.errors のソースコード
"""Exceptions raised by Jabara."""
[ドキュメント]
class JabaraError(Exception):
"""Base class for every error Jabara raises."""
[ドキュメント]
class ChecksumError(JabaraError):
"""A decoded chunk does not match its recorded checksum."""
[ドキュメント]
class UnknownCodecError(JabaraError):
"""An archive or an assigner names a codec that is not registered."""
[ドキュメント]
class UnsupportedStateError(JabaraError):
"""A nested state holds a value Jabara cannot store without pickle."""
[ドキュメント]
class MissingBaseError(JabaraError):
"""A delta codec needs a base tensor, but no base was supplied or the base has no matching tensor."""
[ドキュメント]
class BaseMismatchError(JabaraError):
"""The supplied base archive is not the one a delta archive was written against."""
[ドキュメント]
class LossyNotAllowedError(JabaraError):
"""The assigner chose a lossy codec but the caller did not opt in with `allow_lossy`."""
[ドキュメント]
class UnsupportedDtypeError(JabaraError):
"""A codec cannot handle the tensor's dtype."""
[ドキュメント]
class MissingDependencyError(JabaraError):
"""A codec needs an optional package that is not installed."""
[ドキュメント]
class NonFiniteError(JabaraError):
"""A lossy codec was given NaN or an infinity, or a range it cannot represent."""
[ドキュメント]
class RolesUnknownWarning(UserWarning):
"""A checkpoint file was compressed without the names and roles of its tensors, which only loading it gives."""