Skip to content

Commit

Permalink
change tensor.get() to public
Browse files Browse the repository at this point in the history
  • Loading branch information
PaytonWebber authored Dec 22, 2024
1 parent 5d7bba3 commit 363d3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 363d3b6

Please sign in to comment.