You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add minimal samples for a variety of runtime features #5222
A large part of our test coverage currently comes from integration tests exercising specific ML models through a single compiler backend to a single runtime target. These models are complex and may happen to exercise a specific set of features, but they don't clearly demonstrate any specific feature.
Specifically, I'd like to see minimal samples showing:
State, variables
Dynamic shapes
Exported functions, sync vs async calling (separate from the vulkan samples)
Multiple compiler targets / runtime backends (separate from the simple_embedding sample)
External weights (hot-swapping model parameters)
Some features would be easiest to demonstrate as Python unit tests or Colab notebooks, while others make more sense via the C API (and ideally also through any language bindings we add).
We have simple_stateful_test.py and control_flow_test.py, which meet my bar for "minimal samples", though I still wonder if Colab notebooks or C/C++ samples would also be useful for showing those concepts in use.
Activity
ScottTodd commentedon Mar 31, 2021
We have simple_stateful_test.py and control_flow_test.py, which meet my bar for "minimal samples", though I still wonder if Colab notebooks or C/C++ samples would also be useful for showing those concepts in use.
Add a minimal sample using variables from TF -> C API. (#6104)
Add minimal sample using dynamic shapes from TF -> C. (#6191)
ScottTodd commentedon Jun 28, 2022
I'm going to close this as fixed for now. We should keep adding more minimal samples though.
https://github.com/iree-org/iree-samples/ could use some organization IMO. I recently created a "cpp" directory there, and some index pages with information on the types of samples and how to run them would be useful.