-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: Rewrite and cleanup #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b83e40b to
e1c9b5a
Compare
e1c9b5a to
f408ac8
Compare
be6a1d5 to
86adab5
Compare
00a7e06 to
3c89cb9
Compare
ananos
approved these changes
May 9, 2025
Member
ananos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @papazof
Rewrite package modules, cleanup and modernize build process: - Move all configuration but `cffi`'s build trigger to `pyproject.toml` - Rewrite build script for `cffi` to auto-generate bindings from the `vaccel.h` header - Configure `setuptools` to build an `abi3` wheel (compatible with all Python versions >= 3.10) - Add `CType` abstract class to provide a common interface for C types - Implement wrappers based on `CType` for built-in Python types - Refactor and improve `vaccel` components based on `CType` - Rewrite `vaccel` operations as `Session` mixins - Update/extend tests and provide common `pytest` setup for environment variables and vaccel paths through `pkg-config` - Add a `classify` example with similar functionality to the C vaccel example - Improve and extend docstrings - Cleanup redundant files and code PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
Add API support for `TFLite` and `Torch` operations and relevant tests PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
Move all operation mixins to the `ops` subpackage, mirroring the vaccel C code structure PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
Add `LICENSE`, `NOTICE` and license headers to files PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
Rewrite workflows based on the vaccel repo actions and move docs generation to `nubificus/vaccel-docs` PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
Add a `run-examples.py` script to run the examples with sample inputs and configure the CI to use it PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
Update `README.md` with latest instructions PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
3c89cb9 to
33a3115
Compare
ananos
pushed a commit
that referenced
this pull request
May 9, 2025
Rewrite package modules, cleanup and modernize build process: - Move all configuration but `cffi`'s build trigger to `pyproject.toml` - Rewrite build script for `cffi` to auto-generate bindings from the `vaccel.h` header - Configure `setuptools` to build an `abi3` wheel (compatible with all Python versions >= 3.10) - Add `CType` abstract class to provide a common interface for C types - Implement wrappers based on `CType` for built-in Python types - Refactor and improve `vaccel` components based on `CType` - Rewrite `vaccel` operations as `Session` mixins - Update/extend tests and provide common `pytest` setup for environment variables and vaccel paths through `pkg-config` - Add a `classify` example with similar functionality to the C vaccel example - Improve and extend docstrings - Cleanup redundant files and code PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
ananos
pushed a commit
that referenced
this pull request
May 9, 2025
Add API support for `TFLite` and `Torch` operations and relevant tests PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
ananos
pushed a commit
that referenced
this pull request
May 9, 2025
Move all operation mixins to the `ops` subpackage, mirroring the vaccel C code structure PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
ananos
pushed a commit
that referenced
this pull request
May 9, 2025
Add `LICENSE`, `NOTICE` and license headers to files PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
ananos
pushed a commit
that referenced
this pull request
May 9, 2025
Rewrite workflows based on the vaccel repo actions and move docs generation to `nubificus/vaccel-docs` PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
ananos
pushed a commit
that referenced
this pull request
May 9, 2025
Add a `run-examples.py` script to run the examples with sample inputs and configure the CI to use it PR: #16 Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com> Reviewed-by: Anastassios Nanos <ananos@nubificus.co.uk> Approved-by: Anastassios Nanos <ananos@nubificus.co.uk>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rewrite package modules and extend API, cleanup, rewrite CI and modernize build process:
CTypeabstract class to provide a common interface for C types, provide wrappers for built-in types and refactorvaccelcomponentsvacceloperations asSessionmixins and move toopsTFLiteandTorchoperationspytestsetup for environment variables and vaccel paths throughpkg-configclassifyexample and a script to run the examplesnubificus/vaccel-docs