Expand description
Python bindings for ToRSh - PyTorch-compatible deep learning in Rust
This crate provides Python bindings for the ToRSh deep learning framework, enabling PyTorch-compatible APIs to be used from Python.
§Modular Structure
The crate is organized into focused modules:
tensor- Tensor operations and creation functionsnn- Neural network layers and containersoptim- Optimization algorithmsdevice- Device management and utilitiesdtype- Data type definitions and conversionserror- Error handling and conversionsutils- Common utilities and helpers
Re-exports§
pub use device::PyDevice;pub use dtype::PyDType;pub use error::TorshPyError;
Modules§
- device
- Device handling for Python bindings
- dtype
- Data type handling for Python bindings
- error
- Error handling for PyTorch Python bindings
- utils
- Utility functions and helpers for the torsh-python crate
Macros§
- py_
result - Macro for easy error conversion