Commit Graph

68 Commits

Author SHA1 Message Date
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
Basile Henry
1a271465d6 CI with cachix 2020-05-31 09:40:38 +01:00
Basile Henry
79fe07a57f Setup CI with GH Actions and nix 2020-05-31 09:27:33 +01:00
Christopher Chalmers
117c3af2e2 Fix the sys test 2020-05-31 09:14:15 +01:00
Basile Henry
a1423605ae Nixify 2020-05-31 09:14:01 +01:00
Basile Henry
97c20e8bf0 Add testdata to repo 2020-05-31 09:13:59 +01:00
Basile Henry
3d179b7c30 Don't release test env 2020-05-18 14:36:49 +02:00
Basile Henry
32977b911d Reorganise modules and setup a test environment 2020-05-17 18:04:53 +02:00
Christopher Chalmers
2076b9e127 First test with rust api 2020-05-17 13:36:07 +01:00
Christopher Chalmers
4f382eb831 Add Memory info contructor and use it 2020-05-17 12:08:41 +01:00
Christopher Chalmers
6ccd602947 Apparently CreateTensorWithDataAsOrtValue wanted len in bytes 2020-05-17 11:02:10 +01:00
Christopher Chalmers
412f76a0a2 Split out stuff in separate Value module 2020-05-17 10:58:32 +01:00
Christopher Chalmers
7a6d937fa9 Add some value ref helpers 2020-05-17 10:43:36 +01:00
Christopher Chalmers
1209a4bd9f Add OrtType instances 2020-05-17 10:12:24 +01:00
Christopher Chalmers
79d3c8f311 Add Value and typed tensor 2020-05-17 10:01:20 +01:00
Christopher Chalmers
6c4b842939 Some fixes 2020-05-17 00:38:23 +01:00
Basile Henry
026a68bab9 Add Allocator type and default constructor 2020-05-16 12:14:44 +02:00