From 4daf1f4daa96e50b479e23bde75379b9ffa658fb Mon Sep 17 00:00:00 2001 From: FL33TW00D Date: Sun, 21 Jan 2024 17:49:10 +0000 Subject: [PATCH] chore: very confusing --- crates/ratchet-core/src/tensor.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ratchet-core/src/tensor.rs b/crates/ratchet-core/src/tensor.rs index 40cb2978..d5a5c2fd 100644 --- a/crates/ratchet-core/src/tensor.rs +++ b/crates/ratchet-core/src/tensor.rs @@ -353,7 +353,10 @@ impl Tensor { py: &'p pyo3::Python<'p>, ) -> &PyArrayDyn { use numpy::PyArray; - PyArray::from_owned_array(*py, self.deep_clone().into_ndarray::()) + println!("TO PY: {:?}", self); + let cloned = self.deep_clone(); + println!("CLONED: {:?}", cloned); + PyArray::from_owned_array(*py, cloned.into_ndarray::()) } pub fn deep_clone(&self) -> Tensor {