Skip to content

Commit 63f16ed

Browse files
authored
Fix compilation errors in tests
See rust-ndarray/ndarray#1051. I think these changes will fix the errors, but I haven't tested them.
1 parent 5249646 commit 63f16ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

onnxruntime/tests/integration_tests.rs

-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ mod download {
104104
let mut probabilities: Vec<(usize, f32)> = outputs[0]
105105
.softmax(ndarray::Axis(1))
106106
.into_iter()
107-
.copied()
108107
.enumerate()
109108
.collect::<Vec<_>>();
110109
// Sort probabilities so highest is at beginning of vector.
@@ -193,7 +192,6 @@ mod download {
193192
let mut probabilities: Vec<(usize, f32)> = outputs[0]
194193
.softmax(ndarray::Axis(1))
195194
.into_iter()
196-
.copied()
197195
.enumerate()
198196
.collect::<Vec<_>>();
199197

0 commit comments

Comments
 (0)