We welcome contributions to FINN.
Please follow the steps below and be sure that your contribution complies with our guidelines.
-
Share your proposal via Github issues. If you are looking for some issues to get started with, we have a list of good first issues in the issue tracker. Feel free to ask questions in the FINN GitHub discussions as well.
We welcome submissions to:
- The FINN flow like additional custom ONNX nodes, transformation and analysis passes.
- Contributions to the documentation and Jupyter notebooks
To ensure clean separation of toolflow and examples, we do not keep example networks in this repo. If you want to add example networks, we ask you to make them into a separate repo and use FINN as a dependency -- we'll be happy to add it to the list of FINN community projects.
-
Submitting your pull request:
-
Fork this repository to your own GitHub account using the fork button above.
-
Clone the fork to your local computer using git clone. Checkout the branch you want to work on.
-
Please install pre-commit to ensure your code is formatted to our style guidelines. The hooks we use for pre-commit can be found in this file
-
Modify the Python source code, Jupyter notebooks and Sphinx documentation etc. as needed.
-
Use git add, git commit, git push to add changes to your fork.
-
If you are introducing new functionality, add at least one unit test under the
test/
folder and make sure it passes before you submit the pull request. -
Submit a pull request by clicking the pull request button on your GitHub repo:
- The main branch should always be treated as stable and clean. Only hot fixes are allowed to be pull-requested. The hot fix is supposed to be very important such that without this fix, a lot of things will break.
- For new features, smaller bug fixes, doc updates, and many other fixes, users should pull request against the development branch.
-
-
We will review your contribution and, if any additional fixes or modifications are necessary, may provide feedback to guide you. When accepted, your pull request will be merged to the repository. If you have more questions please contact us.