-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Header Only #2 #3195
Header Only #2 #3195
Conversation
Nice, looks great so far! I don't know if you had more files you were planning to adapt too. |
Yes, I have some files for adaptation. But I was first fixing builds so that I could see results correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, let me know when you need a full review, there is still a lot of work to do
Can you help in |
Finally, its done. Bit of hacky. Can someone confirm whether I need to change some docs or not? |
@shrit Please help me in solving these circular dependencies in util files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @shubham1206agra, thank you for working on this! In the util/
directory, the header files are arranged in a careful way. I would love to help out, but it's hard for me to know where things stand---if you want to bring me up to speed, I can try to help, but I wonder if the easiest thing to do here is to revert the changes in util/
, proceed with this PR that makes other parts of the library header-only, and then we can approach util/
independently (hopefully keeping the changes small). Let me know what you think. 👍
tried to make log header only changing init of assert adding comment cause checks not started adding corrections cleanup converted version to header only converted timers to header only converted prefixoutsream to .hpp converted program doc to .hpp removing circular dependency removing another circular dependency trying forward decl trying another fwd decl idk now :( forward decl trying correcting dependencies
542e38f
to
6ce2580
Compare
This reverts commit 6ce2580.
@rcurtin I have reverted all commits related to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you for taking the time to work on this! I went through all the changes and they look fine, but it looks like something has broken some of the tests. My best guess is that the changes to the random code are the issue here---I left a comment there with some more thoughts. Let me know what you think. 👍
src/mlpack/methods/sparse_autoencoder/sparse_autoencoder_impl.hpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Ryan Curtin <ryan@ratml.org>
Co-authored-by: Ryan Curtin <ryan@ratml.org>
… into header-only
Co-authored-by: Ryan Curtin <ryan@ratml.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the hard work with this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubham1206agra Brilliant work and clean code; thank you for this outstanding contribution.
@rcurtin are we ready for a release?
#include <mlpack/methods/sparse_coding/nothing_initializer.hpp> | ||
#include <mlpack/methods/sparse_coding/data_dependent_random_initializer.hpp> | ||
#include <mlpack/methods/sparse_coding/random_initializer.hpp> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this 👍
Thanks again, all green 💯 💯 🚀 |
Almost! I think we still have one or two things to do until we can remove the |
I think we need to take care of util folder. |
Right, there will be a little bit of trickiness in the |
Previous one - #3091
Trying to convert remaining files. Details to be added later.