From 363d3b6a604c181bfd95b7752a22489973019d86 Mon Sep 17 00:00:00 2001 From: Payton Webber <53197664+PaytonWebber@users.noreply.github.com> Date: Sat, 21 Dec 2024 21:44:09 -0800 Subject: [PATCH] change tensor.get() to public --- tensor/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensor/src/lib.rs b/tensor/src/lib.rs index 4033d3d..a4a4d07 100644 --- a/tensor/src/lib.rs +++ b/tensor/src/lib.rs @@ -166,7 +166,7 @@ impl Tensor { /* GETTERS */ - fn get(&self, indices: &[usize]) -> Option<&f32> { + pub fn get(&self, indices: &[usize]) -> Option<&f32> { if indices.len() != self.shape.len() { return None; }