Skip to content

Commit

Permalink
Fix typo (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
jw1912 authored Oct 5, 2024
1 parent 45cca0d commit 965a136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tensor/operation/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::tensor::{Matrix, Shape, SparseMatrix, Tensor};

pub fn output_tensor(inputs: &[Shape]) -> Result<Shape, String> {
if inputs.len() == 2 {
if inputs[0].cols() == inputs[1].cols() && inputs[0].rows() * inputs[1].rows() == 0 {
if inputs[0].cols() == inputs[1].cols() && inputs[0].rows() % inputs[1].rows() == 0 {
Ok(Shape::new(inputs[0].rows() / inputs[1].rows(), inputs[0].cols()))
} else {
Err(String::from("Vector cannot be split evenly among buckets!"))
Expand Down

0 comments on commit 965a136

Please sign in to comment.