Skip to content

Commit b3a93d7

Browse files
committed
Fix deprecated 'to_rgb()' to 'to_rgb8()'
1 parent 1a9b970 commit b3a93d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/tests/integration_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ mod download {
6464
input0_shape[3] as u32,
6565
FilterType::Nearest,
6666
)
67-
.to_rgb();
67+
.to_rgb8();
6868

6969
// Python:
7070
// # image[y, x, RGB]
@@ -270,7 +270,7 @@ mod download {
270270
.join(IMAGE_TO_LOAD),
271271
)
272272
.unwrap()
273-
.to_rgb();
273+
.to_rgb8();
274274

275275
let array = ndarray::Array::from_shape_fn((1, 224, 224, 3), |(_, j, i, c)| {
276276
let pixel = image_buffer.get_pixel(i as u32, j as u32);

0 commit comments

Comments
 (0)