Commit Graph

649 Commits

Author SHA1 Message Date
Carson M.
750f1df136 tests: add valgrind sample program 2025-03-22 23:44:02 -05:00
Carson M.
89e1ec3ba9 ci: use new example run commands 2025-03-22 00:05:27 -05:00
Carson M.
dc76596976 examples: rework examples, ref #367
run with `cargo example-<name>`
2025-03-22 00:04:21 -05:00
Carson M.
0b5f8f939c chore(tract): oops 2025-03-22 00:02:26 -05:00
Carson M.
4e9813dacc chore: fix unused warnings with --no-default-features 2025-03-20 00:51:28 -05:00
Carson M.
072e162ce0 refactor!: rename extract_tensor -> extract_array, extract_raw_tensor -> extract_tensor
...and `extract_raw_map` to `extract_key_values`, but nobody cares about that
2025-03-20 00:44:15 -05:00
Carson M.
f1e7fe9d32 chore: silence, clippy 2025-03-20 00:24:05 -05:00
Carson M.
98696fe640 refactor: restructure kernel attribute traits 2025-03-20 00:23:58 -05:00
Carson M.
305dadbe94 refactor!: rename ToDimensions to ToShape 2025-03-20 00:23:20 -05:00
Carson M.
d1a4e53be6 chore: replace some Error::wraps with direct conversions 2025-03-20 00:22:35 -05:00
Carson M.
cfb3272725 ci(coverage): exclude backends from coverage 2025-03-20 00:20:37 -05:00
Carson M.
c44ad97530 example(phi-3-vision): remove useless branch 2025-03-20 00:19:57 -05:00
Carson M.
a824fbef65 config: mark ONNX models as binary files 2025-03-19 23:38:42 -05:00
Carson M.
fccbf4daf7 chore: reduce dev dependencies 2025-03-17 01:00:33 -05:00
Carson M.
909e41f26a refactor!: opaque tensor shape, rename dimensions to shape 2025-03-12 22:28:18 -05:00
Carson M.
ee0e0c3c26 docs: fix broken links in rustdoc 2025-03-12 21:28:54 -05:00
Carson M.
3a259d07e7 fix(candle,tract): dont return null pointers for symbolic dimensions 2025-03-12 13:41:42 -05:00
Carson M.
f32787868e fix: no_std
so this whole time i've been running `cargo check --no-default-features` and due to the way this workspace is set up that checks all packages that use ort (almost all of which use default features). so it wasnt actually doing anything! you have to add `-p ort`!
2025-03-12 13:41:28 -05:00
Carson M.
e1368695c2 refactor!: reduce allocations
breaking changes (99% of users will be unaffected):
- `ValueType::Tensor.dimension_symbols` uses `String`s instead of `Option<String>`
- `Tensor::shape` returns `&[i64]` instead of `Result<Vec<i64>>`
- `IoBinding::bind_*` now take `Into<String>` instead of `AsRef<str>` for the `name` parameter
- `SessionBuilder::with_execution_providers` takes `AsRef<[EP]>` instead of `IntoIterator<Item = EP>`
- `SessionBuilder::with_external_initializer_file_in_memory` is limited to `std` and takes `AsRef<Path>` instead of `AsRef<str>`
2025-03-12 13:27:53 -05:00
Carson M.
a131ef370d fix: clippy warnings 2025-03-11 15:56:15 -05:00
Carson M.
879f44da84 fix: update MSRV
i guess we doin 1.81 now
2025-03-11 15:53:55 -05:00
decahedron1
674baa7497 examples: WASM Emscripten example (#347/#363)
Co-authored-by: r.menges <Raphael.Menges@alfatraining.de>
2025-03-11 13:30:20 -05:00
Carson M.
fefd63930f fix: clarify behavior of synchronize_inputs, ref #362 2025-03-11 00:27:42 -05:00
Carson M.
570d7c683a docs: correct typo
aobut lol
2025-03-11 00:12:11 -05:00
Carson M.
88543d9081 docs: update EP dynamic linking info 2025-03-11 00:10:31 -05:00
Carson M.
3a0ea5bccc docs: update cargo features docs 2025-03-10 23:44:02 -05:00
Carson M.
61c1e1d814 refactor: remove half from default features 2025-03-10 23:43:52 -05:00
Carson M.
b550675ced feat: extract num_complex values from complex tensors 2025-03-10 23:40:57 -05:00
Carson M.
7c603aa47e ci(test): also pass link args to rustdoc 2025-03-09 14:33:51 -05:00
Carson M.
3c249ad90e chore(sys): update mac binaries 2025-03-09 14:25:44 -05:00
Carson M.
5a36a06c13 ci(test): fix macOS tests 2025-03-09 12:00:03 -05:00
Carson M.
137ce053a6 fix(sys): fallback if feature set is not available
partial revert of 93b5629
2025-03-09 11:06:35 -05:00
Carson M.
e92a226dc6 chore: update to ONNX Runtime v1.21.0 2025-03-09 11:03:40 -05:00
Carson M.
e81a58c878 docs: correct from_array_view_mut docs 2025-03-09 10:53:49 -05:00
Carson M.
3bb69a053b fix(sys): stop preferring dynamic linking when using cuda or tensorrt 2025-03-09 00:18:24 -06:00
Carson M.
93b5629082 feat(sys): support WebGPU binaries 2025-03-08 23:43:58 -06:00
Carson M.
4d45331390 refactor: reduce the size of generated code
small breaking change is that `run_async` now requires `RunOptions`
2025-03-06 23:25:15 -06:00
Carson M.
e46689f6bc ci: do not restrict to main branch 2025-03-06 01:02:24 -06:00
Carson M.
dc9ad905e4 refactor: shorten the names of EP-specific enums 2025-03-05 21:35:18 -06:00
Carson M.
e8d873a83c fix: make I/O binding synchronize methods take &self, closes #359 2025-03-05 12:17:06 -06:00
Carson M.
743fee8cd6 fix: do not deref ScratchBuffer to slice
(if I ever get that function working) automatically dereferencing the buffer to a slice is dangerous because it could be non-CPU-accessible device memory
2025-03-05 12:07:10 -06:00
Carson M.
51d9bf7d2f feat: support all tensor element types
Now that we have `DynTensor` we don't need the tensor element types to strictly map to Rust primitives anymore.

+ might want to look into `num-complex` integration like we do with `half` (this might be especially useful for custom ops in audio applications, VV?)
2025-03-05 01:42:56 -06:00
Carson M.
b4699a2c41 feat: shape inference attributes, Clone for KernelAttributes 2025-03-05 01:10:23 -06:00
Carson M.
d7cebd6035 fix: no_std compatibility 2025-03-02 17:07:38 -06:00
Carson M.
490abd5ae4 feat: use alternative CoreML EP registration API 2025-03-02 15:57:12 -06:00
Carson M.
10a8d66bdf feat: azure execution provider 2025-03-02 15:41:49 -06:00
Carson M.
aaaef8dde9 config: update extension recommendations 2025-03-02 15:41:24 -06:00
Carson M.
bae2565fd2 ci(backends): specify package 2025-02-24 10:49:59 -06:00
Carson M.
62d40b3826 feat(candle,tract): standalone builds
Allows the candle/tract backends to be compiled as a standalone dylib/staticlib so they can be directly swapped into any application in place of `onnxruntime.dll` or `libonnxruntime.a` (if anybody could figure out how to make Rust static libs work outside of Rust)
2025-02-24 10:48:07 -06:00
Carson M.
0539cd5473 fix(candle,tract): new OrtStatus changes 2025-02-22 22:19:55 -06:00