Skip to main content

Module python_exceptions

Module python_exceptions 

Source
Expand description

Custom Python exception classes for better error handling

Structs§

DeviceError
Device operation error
ErrorContext
Enhanced error context for Python exceptions
MemoryError
Memory management error
NumericalError
Numerical computation error
ShapeError
Tensor shape related error
TensorError
Tensor operation error
TorshError
Base exception for ToRSh operations

Functions§

create_enhanced_exception
Create enhanced Python exception with context
create_numerical_error
Utility function to create numerical errors with recovery suggestions
create_shape_error
Utility function to create tensor shape errors with helpful suggestions
register_exceptions
Register exception types with Python module