mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
refactor!: undo The Flattening
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
use std::path::Path;
|
||||
|
||||
use image::{ImageBuffer, Luma, Pixel, imageops::FilterType};
|
||||
use ort::{ArrayExtensions, GraphOptimizationLevel, Session, inputs};
|
||||
use ort::{
|
||||
inputs,
|
||||
session::{Session, builder::GraphOptimizationLevel},
|
||||
tensor::ArrayExtensions
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -7,7 +7,11 @@ use std::{
|
||||
|
||||
use image::{ImageBuffer, Pixel, Rgb, imageops::FilterType};
|
||||
use ndarray::s;
|
||||
use ort::{ArrayExtensions, Error, GraphOptimizationLevel, Session, inputs};
|
||||
use ort::{
|
||||
Error, inputs,
|
||||
session::{Session, builder::GraphOptimizationLevel},
|
||||
tensor::ArrayExtensions
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -2,7 +2,10 @@ use std::path::Path;
|
||||
|
||||
use image::RgbImage;
|
||||
use ndarray::{Array, ArrayViewD, CowArray, Ix4};
|
||||
use ort::{GraphOptimizationLevel, Session, inputs};
|
||||
use ort::{
|
||||
inputs,
|
||||
session::{Session, builder::GraphOptimizationLevel}
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
fn load_input_image<P: AsRef<Path>>(name: P) -> RgbImage {
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
use std::path::Path;
|
||||
|
||||
use ndarray::{ArrayD, IxDyn};
|
||||
use ort::{GraphOptimizationLevel, Session, Tensor, inputs};
|
||||
use ort::{
|
||||
inputs,
|
||||
session::{Session, builder::GraphOptimizationLevel},
|
||||
value::Tensor
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user