mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
chore: reduce dev dependencies
This commit is contained in:
@@ -111,8 +111,5 @@ num-complex = { version = "0.4", default-features = false, optional = true }
|
||||
anyhow = "1.0"
|
||||
ureq = { version = "3", default-features = false, features = [ "native-tls" ] }
|
||||
image = "0.25"
|
||||
test-log = { version = "0.2", default-features = false, features = [ "trace" ] }
|
||||
tracing-subscriber = { version = "0.3", default-features = false, features = [ "env-filter", "fmt" ] }
|
||||
glassbench = "0.4"
|
||||
tokio = { version = "1.36", features = [ "test-util" ] }
|
||||
tokio-test = "0.4.3"
|
||||
|
||||
@@ -390,7 +390,7 @@ impl Session {
|
||||
/// ```
|
||||
/// # use std::sync::Arc;
|
||||
/// # use ort::{session::{Session, run_options::RunOptions}, value::{Value, ValueType, TensorRef}, tensor::TensorElementType};
|
||||
/// # fn main() -> ort::Result<()> { tokio_test::block_on(async {
|
||||
/// # fn main() -> ort::Result<()> { tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(async {
|
||||
/// let mut session = Session::builder()?.with_intra_threads(2)?.commit_from_file("tests/data/upsample.onnx")?;
|
||||
/// let input = ndarray::Array4::<f32>::zeros((1, 64, 64, 3));
|
||||
/// let options = RunOptions::new()?;
|
||||
|
||||
@@ -39,7 +39,6 @@ where
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use ndarray::{arr1, arr2, arr3};
|
||||
use test_log::test;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use ort::{
|
||||
tensor::ArrayExtensions,
|
||||
value::TensorRef
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
#[test]
|
||||
fn mnist_5() -> ort::Result<()> {
|
||||
|
||||
@@ -12,7 +12,6 @@ use ort::{
|
||||
tensor::ArrayExtensions,
|
||||
value::TensorRef
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
#[test]
|
||||
fn squeezenet_mushroom() -> ort::Result<()> {
|
||||
|
||||
@@ -7,7 +7,6 @@ use std::{
|
||||
};
|
||||
|
||||
use ort::environment::{GlobalThreadPoolOptions, ThreadManager, ThreadWorker};
|
||||
use test_log::test;
|
||||
|
||||
struct ThreadStats {
|
||||
active_threads: AtomicUsize
|
||||
|
||||
@@ -7,7 +7,6 @@ use ort::{
|
||||
session::{Session, builder::GraphOptimizationLevel},
|
||||
value::TensorRef
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
fn load_input_image<P: AsRef<Path>>(name: P) -> RgbImage {
|
||||
// Load image, converting to RGB format
|
||||
|
||||
@@ -8,7 +8,6 @@ use ort::{
|
||||
session::{Session, builder::GraphOptimizationLevel},
|
||||
value::Tensor
|
||||
};
|
||||
use test_log::test;
|
||||
|
||||
#[test]
|
||||
fn vectorizer() -> ort::Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user