Backend refactoring. (#1966)

* Backend refactoring.

* Metal tweaks.

* Move the cudnn module.
This commit is contained in:
Laurent Mazare
2024-03-29 23:02:11 +01:00
committed by GitHub
parent 356a170ae9
commit 665da30487
9 changed files with 1202 additions and 1184 deletions

View File

@ -43,8 +43,6 @@ pub mod cpu;
pub mod cpu_backend;
#[cfg(feature = "cuda")]
pub mod cuda_backend;
#[cfg(feature = "cudnn")]
pub mod cudnn;
mod custom_op;
mod device;
pub mod display;
@ -73,6 +71,9 @@ pub mod test_utils;
pub mod utils;
mod variable;
#[cfg(feature = "cudnn")]
pub use cuda_backend::cudnn;
pub use cpu_backend::CpuStorage;
pub use custom_op::{CustomOp1, CustomOp2, CustomOp3, InplaceOp1, InplaceOp2, InplaceOp3};
pub use device::{Device, DeviceLocation, NdArray};