Skip to content

Commit

Permalink
Merge pull request #30 from nbigaouette/onnx152
Browse files Browse the repository at this point in the history
Bump ONNX Runtime version to 1.5.2
  • Loading branch information
nbigaouette committed Oct 17, 2020
2 parents c918b11 + 62b41d4 commit 7de15a0
Show file tree
Hide file tree
Showing 6 changed files with 470 additions and 9 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
### Changed

- Update ONNX Runtime to 1.5.2 from 1.4.0 ([#30](https://github.com/nbigaouette/onnxruntime-rs/pull/30))

## [0.0.9] - 2020-10-13

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![codecov](https://codecov.io/gh/nbigaouette/onnxruntime-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/nbigaouette/onnxruntime-rs)

This is an attempt at a Rust wrapper for
[Microsoft's ONNX Runtime](https://github.com/microsoft/onnxruntime) (version 1.4).
[Microsoft's ONNX Runtime](https://github.com/microsoft/onnxruntime) (version 1.5).

This project consist on two crates:

Expand Down
2 changes: 1 addition & 1 deletion onnxruntime-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
};

/// ONNX Runtime version
const ORT_VERSION: &str = "1.4.0";
const ORT_VERSION: &str = "1.5.2";

/// Base Url from which to download pre-built releases/
const ORT_RELEASE_BASE_URL: &str = "https://github.com/microsoft/onnxruntime/releases/download";
Expand Down
4 changes: 2 additions & 2 deletions onnxruntime-sys/examples/c_api_sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ fn main() {
.collect();
let output_node_names_ptr_ptr: *const *const i8 = output_node_names_ptr.as_ptr();

let input_node_names_cstring =
let _input_node_names_cstring =
unsafe { std::ffi::CString::from_raw(input_node_names_ptr[0] as *mut i8) };
let run_options_ptr: *const OrtRunOptions = std::ptr::null();
let mut output_tensor_ptr: *mut OrtValue = std::ptr::null_mut();
let mut output_tensor_ptr_ptr: *mut *mut OrtValue = &mut output_tensor_ptr;
let output_tensor_ptr_ptr: *mut *mut OrtValue = &mut output_tensor_ptr;

let status = unsafe {
g_ort.as_ref().unwrap().Run.unwrap()(
Expand Down
Loading

0 comments on commit 7de15a0

Please sign in to comment.