16 Commits

Author SHA1 Message Date
Carson M.
75d43518bd chore: use 2024 edition Rust 2025-10-25 15:39:24 -05:00
Carson M.
75ec921a1e examples: document examples
I'm pretty sure the modnet photo was taken by Charlotte May, not "Tyler Nix". The link leftover from cudarc's COPYRIGHT.md (btw, why did I delete that file from modnet?) is now a 404. Reverse image search led me to Charlotte May's photo on Pexels, and their profile features more photos of the same person. Does this mean 'Tyler Nix' is a THIEF...? Nixgate!!1!

Also, I once again apologize for saying I was gonna do this however long ago and then promptly forgetting to do it
2025-04-28 01:52:47 -05:00
Carson M.
9b316809bf fix(sys): do not require -fapple-link-rtlib
it really is that shrimple
2025-04-20 10:55:08 -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.
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.
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.
d738b1757b chore: start moving stuff off parcel 2025-02-21 23:31:14 -06:00
Carson M.
bd2aff711e refactor!: make Session::run take &mut self 2025-02-08 11:56:51 -06:00
Carson M.
c5a06a731a chore: remove ndarray for examples that do not need it 2024-12-21 01:01:48 -06:00
Carson M.
cf447cf566 fix: do not require 'static for run_async inputs 2024-12-21 01:00:14 -06:00
Carson M.
9ea18d815b refactor!: allow zero-copy from_array for array views with TensorRef
This has all sorts of fun breaking changes:
- `ort::inputs!` no longer yields an `ort::Result<...>` (thank God)
- `Tensor::from_array` now only accepts owned data.
- Introduce `TensorRef::from_array_view` and `TensorRefMut::from_array_view_mut`.
- `TryFrom<A>` is no longer implemented for `Tensor<T>` for any variants.

This opens the door to new optimizations on top of fixing a few unsoundness issues.

TODO: update docs
2024-12-21 00:24:54 -06:00
Carson M.
d4f82fc50e refactor!: undo The Flattening 2024-11-12 22:19:15 -06:00
Carson M.
cdd6be7a66 chore(*): format code 2024-10-14 00:41:21 -05:00
Carson M.
069ddfdd2c chore: update ndarray to 0.16 2024-08-04 12:24:48 -05:00
Carson M
393f25f6e4 feat: value specialization (#178) 2024-03-27 19:45:41 -05:00
Carson M
979a591408 feat: Session::run_async (#174)
* feat: `Session::run_async`

* fix: set intra threads in doctests

* ci(code-quality): cover doctests too

* feat: make `InferenceFut` cancel safe

* ci(code-quality): revert

* minor cleanup
2024-03-21 18:32:00 -05:00