-
Notifications
You must be signed in to change notification settings - Fork 23
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
Type stability and performance #85
Comments
This is one of the low hanging fruits yes but we haven't had much time to look into it. I think the current performance also was acceptable at least for us and not sure how much would be gained to justify spending time on it. Would you have a partial minimal example that shows for one case of it's worth the effort? We will definitely try to work on it as we want to make sure the community gets what it needs out of this package, just want to check if we should make it a priority. |
Your suggestion to make a minimal example is a good idea. I agree that we should determine the performance gain before making major changes. Given that I am not very familiar with your package and only have basic knowledge of neural networks, I was wondering if you could advise me on two points to help me get started? First, what would you consider to be a good test case to benchmark? Perhaps there is code in the tests that would make a good basis for a benchmark. Perhaps test_conditional_glow_network.jl. Second, can you tell me if the types in |
My first pass with To the best of my knowledge, I made all structs associated with My benchmark was based on code I found in tests.
|
Hi all,
While I was trying to familiarize myself with your code, I noticed a lot of type unstable types throughout the package. This made me wonder whether there are a lot of easy performance gains. I started fixing some of the type unstable code, but decided to stop because I am not familiar with code and design. For example, I noticed that making
Parameters
type stable broke some tests. So it's unclear to me whether it can be made type stable, or what the best design approach might be. My suspicion is that there might be an opportunity for significant performance improvements. Is this an issue that has been considered?The text was updated successfully, but these errors were encountered: