Preliminary support for inplace ops. (#1921)

* Preliminary support for inplace ops.

* Add a test.
This commit is contained in:
Laurent Mazare
2024-03-23 14:16:19 +01:00
committed by GitHub
parent 790037390c
commit fdfe8fd129
5 changed files with 215 additions and 2 deletions

View File

@ -74,7 +74,7 @@ pub mod utils;
mod variable;
pub use cpu_backend::CpuStorage;
pub use custom_op::{CustomOp1, CustomOp2, CustomOp3};
pub use custom_op::{CustomOp1, CustomOp2, CustomOp3, InplaceOp1, InplaceOp2, InplaceOp3};
pub use device::{Device, DeviceLocation, NdArray};
pub use dtype::{DType, FloatDType, IntDType, WithDType};
pub use error::{Error, Result};