Skip to content

Commit 70c7b2f

Browse files
authored
Merge branch 'main' into bump_version
2 parents ef0b82b + 1413c03 commit 70c7b2f

File tree

137 files changed

+9520
-2402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+9520
-2402
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Bug report
3+
about: Something isn't working as expected
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
11+
## Prerequisites
12+
Please make sure to check off these prerequisites before submitting a bug report.
13+
- [ ] Test that the bug appears on the current version of the master branch. Make sure to include the commit hash of the commit you checked out.
14+
- [ ] Check that the issue hasn't already been reported, by checking the currently open issues.
15+
- [ ] If there are steps to reproduce the problem, make sure to write them down below.
16+
- [ ] If relevant, please include the hls4ml project files, which were created directly before and/or after the bug.
17+
18+
## Quick summary
19+
Please give a brief and concise description of the bug.
20+
21+
## Details
22+
Please add to the following sections to describe the bug as accurately as possible.
23+
24+
### Steps to Reproduce
25+
Add what needs to be done to reproduce the bug. Add *commented* code examples and make sure to include the original model files / code, and the commit hash you are working on.
26+
27+
1. Clone the hls4ml repository
28+
2. Checkout the master branch, with commit hash: [...]
29+
3. Run conversion [...] on model file with code [...]
30+
4. [Further steps ...]
31+
32+
### Expected behavior
33+
Please add a brief description of what you expected to happen.
34+
35+
### Actual behavior
36+
Describe what actually happens instead.
37+
38+
## Optional
39+
40+
### Possible fix
41+
If you already know where the issue stems from, or you have a hint please let us know.
42+
43+
### Additional context
44+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Talk and engage with the comunity
4+
url: https://github.com/fastmachinelearning/hls4ml/discussions/categories/general
5+
about: Check out the GitHub discusisons page for hls4ml. This is the best way to get in touch with us. In particular, if you have a question about hls4ml or a general problem that is likely not a bug.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for hls4ml
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
## Prerequisites
11+
Please talk to us before creating a new feature request. So that you can check that the idea is not already in active development.
12+
13+
You can present your idea over here at the GitHub discussions page for hls4ml: https://github.com/fastmachinelearning/hls4ml/discussions/categories/ideas
14+
15+
Even if an idea is already being worked on you can still create a feature request,
16+
if you would like to open a discussion about the feature or want to contribute to it.
17+
18+
## Details
19+
Please add to the following sections to describe the feature as accurately as possible.
20+
21+
### New behavior
22+
Please add a brief and concise description of what you would like to happen in hls4ml in the future.
23+
24+
### Motivation
25+
Please tell us why this feature is important to the community.
26+
27+
### Parts of hls4ml being affected
28+
Please describe which parts of hls4ml would be affected by this feature.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
A# Description
2+
3+
> :memo: Please include a summary of the change.
4+
>
5+
> * Please also include relevant motivation and context.
6+
> * List any dependencies that are required for this change.
7+
8+
## Type of change
9+
10+
For a new feature or function, please create an issue first to discuss it
11+
with us before submitting a pull request.
12+
13+
Note: Please delete options that are not relevant.
14+
15+
- [ ] Bug fix (non-breaking change that fixes an issue)
16+
- [ ] Documentation update
17+
- [ ] New feature (non-breaking change which adds functionality)
18+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
19+
- [ ] A new research paper code implementation
20+
- [ ] Other (Specify)
21+
22+
## Tests
23+
24+
> :memo: Please describe the tests that you ran to verify your changes.
25+
>
26+
> * Provide instructions so we can reproduce.
27+
> * Please also list any relevant details for your test configuration.
28+
29+
**Test Configuration**:
30+
31+
## Checklist
32+
33+
- [ ] I have read the [guidelines for contributing](https://github.com/fastmachinelearning/hls4ml/blob/main/CONTRIBUTING.md).
34+
- [ ] I have commented my code, particularly in hard-to-understand areas.
35+
- [ ] I have made corresponding changes to the documentation.
36+
- [ ] My changes generate no new warnings.
37+
- [ ] I have added tests that prove my fix is effective or that my feature works.B

.github/workflows/build-sphinx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build-sphinx
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66

77
jobs:
88
build:
@@ -30,4 +30,4 @@ jobs:
3030
with:
3131
branch: gh-pages
3232
directory: gh-pages
33-
github_token: ${{ secrets.PERSONAL_TOKEN }}
33+
github_token: ${{ secrets.PERSONAL_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
A package for machine learning inference in FPGAs. We create firmware implementations of machine learning algorithms using high level synthesis language (HLS). We translate traditional open-source machine learning package models into HLS that can be configured for your use-case!
1010

11-
**Contact:** hls4ml.help@gmail.com
11+
If you have any questions, comments, or ideas regarding hls4ml or just want to show us how you use hls4ml, don't hesitate to reach us through the [discussions](https://github.com/fastmachinelearning/hls4ml/discussions) tab.
1212

1313
# Documentation & Tutorial
1414

docs/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ Welcome to hls4ml's documentation!
3535

3636
``hls4ml`` is a Python package for machine learning inference in FPGAs. We create firmware implementations of machine learning algorithms using high level synthesis language (HLS). We translate traditional open-source machine learning package models into HLS that can be configured for your use-case!
3737

38-
The project is currently in development, so please let us know if you are interested, your experiences with the package, and if you would like new features to be added.
39-
40-
38+
The project is currently in development, so please let us know if you are interested, your experiences with the package, and if you would like new features to be added. You can reach us through our GitHub page.
4139

4240

4341
Project Status

hls4ml/backends/backend.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ def _init_class_optimizers(self):
2525
return class_optimizers
2626

2727
def _init_file_optimizers(self):
28-
opt_path = os.path.dirname(inspect.getfile(self.__class__)) + '/passes'
29-
module_path = self.__module__[:self.__module__.rfind('.')] + '.passes'
30-
file_optimizers = extract_optimizers_from_path(opt_path, module_path, self)
31-
for base in self.__class__.__bases__:
32-
opt_path = os.path.dirname(inspect.getfile(base)) + '/passes'
33-
module_path = base.__module__[:base.__module__.rfind('.')] + '.passes'
34-
base_optimizers = extract_optimizers_from_path(opt_path, module_path, self)
35-
file_optimizers.update(base_optimizers)
28+
file_optimizers = {}
29+
for cls in [*self.__class__.__bases__, self.__class__]:
30+
opt_path = os.path.dirname(inspect.getfile(cls)) + '/passes'
31+
module_path = cls.__module__[:cls.__module__.rfind('.')] + '.passes'
32+
cls_optimizers = extract_optimizers_from_path(opt_path, module_path, self)
33+
file_optimizers.update(cls_optimizers)
3634
return file_optimizers
3735

3836
def _get_layer_initializers(self):

0 commit comments

Comments
 (0)