mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 12:20:46 +00:00
PyO3 is back.
This commit is contained in:
@ -14,6 +14,9 @@ pub fn wrap_err(err: ::candle::Error) -> PyErr {
|
||||
#[pyclass(name = "Tensor")]
|
||||
struct PyTensor(Tensor);
|
||||
|
||||
unsafe impl Send for PyTensor {}
|
||||
unsafe impl Sync for PyTensor {}
|
||||
|
||||
impl std::ops::Deref for PyTensor {
|
||||
type Target = Tensor;
|
||||
|
||||
|
Reference in New Issue
Block a user