SAME-Project / same-project

https://sameproject.ml/
Apache License 2.0
20 stars 8 forks source link

Move runtime options into backend packages and add support for custom validation. #157

Closed Bubblyworld closed 2 years ago

Bubblyworld commented 2 years ago

See #156. I've added options.py files to each of the backends modules, with the idea that all of the backend's runtime options should be specified and configured there. For examples of how to use the register_option(...) API, have a look at sameproject/ops/functions/options.py and test/ops/test_runtime_options.py.