From 97c20e8bf0087a135464916703908eb6a0d1e50c Mon Sep 17 00:00:00 2001 From: Basile Henry Date: Sat, 30 May 2020 20:22:50 +0100 Subject: [PATCH] Add testdata to repo --- src/lib.rs | 2 +- src/sys.rs | 2 +- testdata/matmul_1.onnx | Bin 0 -> 123 bytes 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 testdata/matmul_1.onnx diff --git a/src/lib.rs b/src/lib.rs index eef6cb0..5283724 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -398,7 +398,7 @@ mod tests { let so = SessionOptions::new()?; - let model_path = "../onnxruntime/test/testdata/matmul_1.onnx"; + let model_path = "testdata/matmul_1.onnx"; let session = Session::new(&env, model_path, &so)?; let in_name = session.input_name(0)?; let out_name = session.output_name(0)?; diff --git a/src/sys.rs b/src/sys.rs index 42584f4..9eaf027 100644 --- a/src/sys.rs +++ b/src/sys.rs @@ -48,7 +48,7 @@ pub(crate) mod tests { raw_session_options }; - let model_path = CString::new("../onnxruntime/test/testdata/matmul_1.onnx").unwrap(); + let model_path = CString::new("testdata/matmul_1.onnx").unwrap(); let session: *mut Session = { let create_session = api.CreateSession.unwrap(); diff --git a/testdata/matmul_1.onnx b/testdata/matmul_1.onnx new file mode 100644 index 0000000000000000000000000000000000000000..257aa3029d76d101886e6efb786215f4035d0028 GIT binary patch literal 123 zcmd;J7Gg`zNX;urw94d?=3PM_O_0%vg^NLe F9RM<(6czvg literal 0 HcmV?d00001