Repository navigation
Start filling in bindings/c-api doc. - #5485
Conversation
| <!-- TODO(scotttodd): I/O buffers (TODO pending new helpers) --> | ||
| <!-- TODO(scotttodd): iree_vm_invoke --> | ||
|
|
||
| ``` c | ||
| // (Program-specific I/O buffer setup, making data available to the device) | ||
|
|
||
| IREE_CHECK_OK(iree_vm_invoke(context, main_function, | ||
| /*policy=*/nullptr, inputs, outputs, | ||
| iree_allocator_system())); | ||
|
|
||
| // (Program-specific output buffer retrieval and reading back from the device) | ||
| ``` |
There was a problem hiding this comment.
I can talk about concepts here (or above) more, but the raw usage in simple_embedding_test is pretty verbose: https://github.com/google/iree/blob/59bf64f80f78262ae93a698074097f4e15eb1a8f/iree/samples/simple_embedding/simple_embedding_test.cc#L119-L198
|
ಠ_ಠ yamllint |
|
This CL is really helpful in understanding IREE's runtime. I have 2 general comments:
|
benvanik
left a comment
There was a problem hiding this comment.
https://github.com/google/iree/blob/699e5308f40df1496eb55a05fb3fd2377b359601/iree/runtime/session_demo_standalone.c will be the higher level API we'll want to point to (I can do this once it lands) - hides a lot of the goo in here
Progress on #5463
Preview: https://scotttodd.github.io/iree/bindings/c-api/
Code is modeled after simple_embedding.c, with some comments lifted from API header files and some changes from C++ test code to C sample code (see #5481 to clean that up).