Skip to content
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

Make profiling return pre- and post-optimization plots (up to 4 plots in total) #323

Merged
merged 11 commits into from
Apr 23, 2021

Conversation

maksgraczyk
Copy link
Contributor

Currently, hls4ml.model.profiling.numerical() returns 2 profiling plots, most often showing HLSModel and Keras/PyTorch/... layers with HLSModel data types overlaid. These may be confusing because hls4ml applies optimizations resulting in differences between final HLSModel and Keras/PyTorch/... layers.

This PR attempts to resolve this problem by making hls4ml.model.profiling.numerical() return up to 4 plots instead of 2: predominantly weights of HLSModel layers before and after optimizations + activations/outputs of HLSModel/Keras/PyTorch/... layers before and after optimizations.

@thesps thesps self-requested a review April 19, 2021 09:37
hls4ml/model/profiling.py Outdated Show resolved Hide resolved
@thesps thesps merged commit 7f76212 into fastmachinelearning:master Apr 23, 2021
calad0i pushed a commit to calad0i/hls4ml that referenced this pull request Jul 1, 2023
…-4-plots

Make profiling return pre- and post-optimization plots (up to 4 plots in total)
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.

2 participants