Skip to content

Commit 694bb7c

Browse files
authored
Merge pull request #45 from nbigaouette/nbigaouette/issue44
Re-export ndarray
2 parents b24b4cd + 0cadee1 commit 694bb7c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

onnxruntime/examples/sample.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#![forbid(unsafe_code)]
22

3-
use ndarray::Array;
4-
53
use onnxruntime::{
6-
environment::Environment, tensor::OrtOwnedTensor, GraphOptimizationLevel, LoggingLevel,
4+
environment::Environment, ndarray::Array, tensor::OrtOwnedTensor, GraphOptimizationLevel,
5+
LoggingLevel,
76
};
87
use tracing::Level;
98
use tracing_subscriber::FmtSubscriber;

onnxruntime/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ pub mod tensor;
132132
pub use error::{OrtApiError, OrtError, Result};
133133
use sys::OnnxEnumInt;
134134

135+
// Re-export ndarray as it's part of the public API anyway
136+
pub use ndarray;
137+
135138
lazy_static! {
136139
// static ref G_ORT: Arc<Mutex<AtomicPtr<sys::OrtApi>>> =
137140
// Arc::new(Mutex::new(AtomicPtr::new(unsafe {

0 commit comments

Comments
 (0)