Closed laocaoshilaocao closed 3 years ago
Hi, i am using ag.argmax method and i met a weird situation.
ag.argmax
let test = g.constant(array![85.0, 16.0, 0.04, 85.0, 16.0, 85.0]); let max_dis_index = g.argmax(test, 0, false).show_with("max_dis_index is"); g.eval(&[max_dis_index], &[]);
The output becomes 8.0 which is obviously wrong.
8.0
That happens when the maximum number has more than 2 times.
Fixed in https://github.com/raskr/rust-autograd/pull/49
Hi, i am using
ag.argmax
method and i met a weird situation.The output becomes
8.0
which is obviously wrong.That happens when the maximum number has more than 2 times.