Commit Graph

84 Commits

Author SHA1 Message Date
Christopher Chalmers
ffc2237abe Run the model multiple times and on multiple threads in run example 2020-05-31 20:23:00 +01:00
Christopher Chalmers
abb7a28771 Don't need both license-file and license 2020-05-31 17:43:52 +01:00
Christopher Chalmers
8b1d032121 Point to standard include path in README 2020-05-31 17:22:29 +01:00
Christopher Chalmers
6a4d5f47da Move pkg-config and clang to nativeBuildInputs 2020-05-31 17:21:30 +01:00
Christopher Chalmers
3bdc2c93d0 Add some examples 2020-05-31 17:20:17 +01:00
Christopher Chalmers
4b6afb6170 Add Display for OrtString 2020-05-31 17:20:17 +01:00
Christopher Chalmers
598b9a6aae Add session metadata 2020-05-31 17:20:17 +01:00
Christopher Chalmers
298a55f182 Implement Send and Sync for a bunch of types 2020-05-31 17:20:17 +01:00
Christopher Chalmers
be0e5eb9da Expose from_raw for Status 2020-05-31 17:20:17 +01:00
Christopher Chalmers
4d1f3edd5d Add TensorView and TensorViewMut 2020-05-31 17:20:17 +01:00
Christopher Chalmers
d13a7ad0ba Have a &[usize] interface for tensors
Using i64 for the tensor size is so annoying.
2020-05-31 17:20:17 +01:00
Christopher Chalmers
a7128e22a6 Prettier Symbolic fmt 2020-05-31 17:20:17 +01:00
Christopher Chalmers
3b24f99e1d Nicer symbolic dimensions interface 2020-05-31 17:20:17 +01:00
Christopher Chalmers
0cfa44a4a0 Slightly less crazy with the iterators 2020-05-31 17:20:17 +01:00
Christopher Chalmers
c4a903e9ee Refactor how arguments are handled 2020-05-31 17:20:17 +01:00
Christopher Chalmers
cfef7a5bc6 Fully qualified use of CStr in run macro 2020-05-31 17:20:17 +01:00
Christopher Chalmers
3c537e9f38 Let the session be an expression in run macro 2020-05-31 17:20:17 +01:00
Christopher Chalmers
2c6cf51762 Add support for literal names in run macro 2020-05-31 17:20:17 +01:00
Christopher Chalmers
5a7a41735c Properly convert CStr to pointers 2020-05-31 17:20:17 +01:00
Christopher Chalmers
f87343731b Add symbolic_dims for TensorInfo 2020-05-31 17:20:17 +01:00
Christopher Chalmers
b2921f12fe Add api for getting info about session inputs and outputs 2020-05-31 17:20:17 +01:00
Christopher Chalmers
c211524131 Add some RunOptions options 2020-05-31 17:20:17 +01:00
Christopher Chalmers
27ed2c1863 Make options macro that looks more like rust 2020-05-31 17:20:17 +01:00
Christopher Chalmers
433acb5aa9 Add special case to option macro &str 2020-05-31 17:20:17 +01:00
Christopher Chalmers
36cab78c0b Add unsafe as a special arg to call 2020-05-31 17:20:17 +01:00
Christopher Chalmers
af38b1481e More functions missed by new macro 2020-05-31 17:20:17 +01:00
Christopher Chalmers
a722f05a7f Add function generating macro for simple options 2020-05-31 17:20:17 +01:00
Christopher Chalmers
bf2cfb2364 Super call macro with weird @ syntax 2020-05-31 17:20:17 +01:00
Christopher Chalmers
9e940a6d53 First wave of macro changes 2020-05-31 17:20:17 +01:00
Christopher Chalmers
8236881751 More cleanups 2020-05-31 17:20:17 +01:00
Christopher Chalmers
b9b577210b Cleanup 2020-05-31 17:20:17 +01:00
Christopher Chalmers
fea406e689 Make OrtType unsafe 2020-05-31 17:20:17 +01:00
Christopher Chalmers
ba9a0c03ac Cleanup tensor generation, and CPU_ARENA MemoryInfo 2020-05-31 17:20:17 +01:00
Christopher Chalmers
be3b6c3e92 Add a run macro that handles inputs and outputs 2020-05-31 17:20:17 +01:00
Christopher Chalmers
ae183df691 Add a Val type for references to values 2020-05-31 17:20:17 +01:00
Christopher Chalmers
6f77c950bc Add from_raw function 2020-05-31 17:20:17 +01:00
Christopher Chalmers
8abd94d828 Add resize tensor function 2020-05-31 17:20:17 +01:00
Christopher Chalmers
f20f294de5 Use &mut self and return &mut Self for options
Best of both worlds.
2020-05-31 17:20:17 +01:00
Christopher Chalmers
fc141046cd Expose sys module 2020-05-31 17:20:17 +01:00
Christopher Chalmers
c2b4a12bb7 Expose raw to get the pointer 2020-05-31 17:20:17 +01:00
Christopher Chalmers
94bd67bd1f Expose OrtType 2020-05-31 17:20:17 +01:00
Christopher Chalmers
bd968a44f5 Add run_mut 2020-05-31 17:20:17 +01:00
Christopher Chalmers
a80e4536a2 impl Error for Error 2020-05-31 17:19:26 +01:00
Basile Henry
048dc978c7
Merge pull request #9 from basile-henry/license
Add MIT License
2020-05-31 16:52:04 +02:00
Basile Henry
2290033ae2
Merge pull request #8 from basile-henry/nix
Setup nix infrastructure
2020-05-31 16:51:44 +02:00
Basile Henry
576ddd6909 Add license to Cargo.toml 2020-05-31 15:25:11 +01:00
Christopher Chalmers
16d7b8e371 Remove more files from the src filter 2020-05-31 13:58:59 +01:00
Christopher Chalmers
f2ce033d30 Use pkg-config to sort out dependencies 2020-05-31 13:58:34 +01:00
Basile Henry
89783697a4 Add Chris to the list of authors in Cargo.toml 2020-05-31 09:58:02 +01:00
Basile Henry
278b5a3d0c Add MIT license 2020-05-31 09:58:02 +01:00