Skip to content

Use correct number of args for multiple outputs #487

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 3 commits into from
Jun 19, 2022

Conversation

apfusco
Copy link
Contributor

@apfusco apfusco commented Jan 5, 2022

The arguments set for top_function assumed there could be multiple inputs but only one output. If there were multiple outputs, the argtuple did not match the parameters in the generated HLS function, and caused a seg fault when calling predict().

@hepkosmos

This comment was marked as spam.

@apfusco
Copy link
Contributor Author

apfusco commented Jan 5, 2022

This PR needs a unit test added before it can be merged to follow the contribution guidelines.

@hepkosmos

This comment was marked as spam.

@jmduarte jmduarte self-requested a review June 18, 2022 22:47
@jmduarte jmduarte force-pushed the predict-multiple-outputs branch from e3fab15 to 1c302ad Compare June 18, 2022 22:56
@jmduarte jmduarte changed the title [WIP]: Use correct number of args for multiple outputs Use correct number of args for multiple outputs Jun 18, 2022
@jmduarte jmduarte marked this pull request as ready for review June 18, 2022 22:57
Copy link
Member

@jmduarte jmduarte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmduarte jmduarte requested a review from vloncar June 19, 2022 01:13
@jmduarte jmduarte merged commit fcdf370 into fastmachinelearning:master Jun 19, 2022
calad0i pushed a commit to calad0i/hls4ml that referenced this pull request Jul 1, 2023
…ple-outputs

Use correct number of args for multiple outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants