mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
chore: cleanup
This commit is contained in:
@@ -148,7 +148,7 @@ pub(crate) fn assert_non_null_pointer<T>(ptr: *const T, name: &'static str) -> R
|
||||
/// Converts an [`ort_sys::OrtStatus`] to a [`Result`].
|
||||
///
|
||||
/// Note that this frees `status`!
|
||||
pub unsafe fn status_to_result(status: *mut ort_sys::OrtStatus) -> Result<(), Error> {
|
||||
pub(crate) unsafe fn status_to_result(status: *mut ort_sys::OrtStatus) -> Result<(), Error> {
|
||||
if status.is_null() {
|
||||
Ok(())
|
||||
} else {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use std::{
|
||||
path::Path,
|
||||
sync::{
|
||||
Arc,
|
||||
atomic::{AtomicUsize, Ordering}
|
||||
@@ -7,12 +6,7 @@ use std::{
|
||||
thread::{self, JoinHandle}
|
||||
};
|
||||
|
||||
use image::{ImageBuffer, Luma, Pixel, imageops::FilterType};
|
||||
use ort::{
|
||||
environment::{GlobalThreadPoolOptions, ThreadManager, ThreadWorker},
|
||||
inputs,
|
||||
session::{Session, builder::GraphOptimizationLevel}
|
||||
};
|
||||
use ort::environment::{GlobalThreadPoolOptions, ThreadManager, ThreadWorker};
|
||||
use test_log::test;
|
||||
|
||||
struct ThreadStats {
|
||||
|
||||
Reference in New Issue
Block a user