You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use more consistent and documented exception types
E.g. some sort of InvalidTensorizerFile exception when deserializing, which could have subtypes like UnsupportedTensorizerVersion
This would just make it a bit easier for code using tensorizer to differentiate between bad files or issues with their system, library dependency versions, deserialization flags they requested, or various other things
Having a smaller, documented set of errors in the outer layer of the API makes it so people don't have to use except Exception as often, which is usually nice
The text was updated successfully, but these errors were encountered:
From @Eta0 in #127 (review)
InvalidTensorizerFile
exception when deserializing, which could have subtypes likeUnsupportedTensorizerVersion
except Exception
as often, which is usually niceThe text was updated successfully, but these errors were encountered: