Skip to content

Commit

Permalink
Fix ArgMin op
Browse files Browse the repository at this point in the history
Fix regression introduced in fee3f09 where
ArgMin dispatched to `arg_max` instead of `arg_min`.
  • Loading branch information
robertknight committed Feb 10, 2025
1 parent 83f0003 commit a4d9768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/reduce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl Operator for ArgMin {

fn run(&self, pool: &TensorPool, inputs: InputList) -> Result<OutputList, OpError> {
let input = inputs.require(0)?;
dispatch_single_axis_reduce_op!(pool, input, arg_max, self.axis, self.keep_dims)
dispatch_single_axis_reduce_op!(pool, input, arg_min, self.axis, self.keep_dims)
}
}

Expand Down

0 comments on commit a4d9768

Please sign in to comment.