29 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.
909e41f26a refactor!: opaque tensor shape, rename dimensions to shape 2025-03-12 22:28:18 -05: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.
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.
33938fde8b refactor: rename SessionBuilder commit methods 2024-02-28 21:17:54 -06:00
Carson M.
11d267eb44 fix: add apple rtlib link to examples 2024-02-28 09:15:47 -06:00
Carson M.
6e7c051a7a feat: custom ops & mutable tensors 2024-02-22 19:53:51 -06:00
Carson M.
a68370297d refactor: split out run_with_options 2024-01-12 11:12:20 -06:00
aykut-bozkurt
45f96c11bd feat: basic RunOptions support (#139) 2024-01-12 08:51:44 -06:00
Carson M.
153d7afdb9 refactor: remove model zoo URLs 2023-12-27 23:56:00 -06:00
Carson M.
8e477536b4 feat: gpt2 example without ndarray 2023-12-05 15:55:25 -06:00
Carson M.
c69064f443 refactor: create environment in global OnceLock 2023-11-20 21:05:50 -06:00
Carson M.
3838303b2b style(gpt2): convert doc comments to regular comments 2023-11-19 23:41:00 -06:00
Lenny
4778871004 docs(examples): add notes to gpt-2 example
* Leaving Error Note for Examples

* added docs for gpt2.rs

* Delete examples/Readme.md

* Update gpt2.rs

---------

Co-authored-by: Carson M <carson@pyke.io>
2023-11-13 11:33:01 -06:00
Carson M.
e5d8b6daae refactor: move example data to respective folders 2023-11-12 23:18:22 -06:00
Carson M.
34f8161357 whole bunch of changes
- Refactor execution providers to be separate builder pattern structs
- Improve `IoBinding` ergonomics
- Reduce allocations in hot paths
- Fix a few memory leaks
- Make the `ndarray` dependency optional

TODO:
- Make mutable `Value` methods
- Useful `IoBinding` example/test (Stable DIffusion?)
- Allow passing in pre-allocated `Value`s to `Session::run`, see C docs
2023-11-10 19:38:15 -06:00
Carson M.
02ac039cef chore: cleanup manifests, split license file 2023-11-06 19:21:58 -06:00
Carson M.
a802cf4dc8 refactor: cleanup type names, make custom ops optional 2023-11-01 23:06:56 -05:00
Carson M.
eabeb6ea5d refactor: split out examples into crates 2023-10-22 12:11:29 -05:00