Skip to content

Commit

Permalink
chore: very confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
FL33TW00D committed Jan 21, 2024
1 parent 21cbe5b commit 4daf1f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/ratchet-core/src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ impl Tensor {
py: &'p pyo3::Python<'p>,
) -> &PyArrayDyn<T> {
use numpy::PyArray;
PyArray::from_owned_array(*py, self.deep_clone().into_ndarray::<T>())
println!("TO PY: {:?}", self);
let cloned = self.deep_clone();
println!("CLONED: {:?}", cloned);
PyArray::from_owned_array(*py, cloned.into_ndarray::<T>())
}

pub fn deep_clone(&self) -> Tensor {
Expand Down

0 comments on commit 4daf1f4

Please sign in to comment.