Skip to content

Commit

Permalink
Merge pull request #45 from nbigaouette/nbigaouette/issue44
Browse files Browse the repository at this point in the history
Re-export ndarray
  • Loading branch information
nbigaouette authored Dec 26, 2020
2 parents b24b4cd + 0cadee1 commit 694bb7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onnxruntime/examples/sample.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#![forbid(unsafe_code)]

use ndarray::Array;

use onnxruntime::{
environment::Environment, tensor::OrtOwnedTensor, GraphOptimizationLevel, LoggingLevel,
environment::Environment, ndarray::Array, tensor::OrtOwnedTensor, GraphOptimizationLevel,
LoggingLevel,
};
use tracing::Level;
use tracing_subscriber::FmtSubscriber;
Expand Down
3 changes: 3 additions & 0 deletions onnxruntime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ pub mod tensor;
pub use error::{OrtApiError, OrtError, Result};
use sys::OnnxEnumInt;

// Re-export ndarray as it's part of the public API anyway
pub use ndarray;

lazy_static! {
// static ref G_ORT: Arc<Mutex<AtomicPtr<sys::OrtApi>>> =
// Arc::new(Mutex::new(AtomicPtr::new(unsafe {
Expand Down

0 comments on commit 694bb7c

Please sign in to comment.