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

Header Only #2 #3195

Merged
merged 59 commits into from
Jun 9, 2022
Merged

Header Only #2 #3195

merged 59 commits into from
Jun 9, 2022

Conversation

shubham1206agra
Copy link
Contributor

Previous one - #3091
Trying to convert remaining files. Details to be added later.

@rcurtin
Copy link
Member

rcurtin commented Apr 29, 2022

Nice, looks great so far! I don't know if you had more files you were planning to adapt too.

@shubham1206agra
Copy link
Contributor Author

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.

Copy link
Member

@shrit shrit left a 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

src/mlpack/core/dists/gamma_distribution_impl.hpp Outdated Show resolved Hide resolved
src/mlpack/core/dists/gamma_distribution_impl.hpp Outdated Show resolved Hide resolved
src/mlpack/core/dists/gamma_distribution_impl.hpp Outdated Show resolved Hide resolved
@shubham1206agra
Copy link
Contributor Author

shubham1206agra commented Apr 30, 2022

Good, let me know when you need a full review, there is still a lot of work to do

Can you help in random.hpp one?
I am trying to backport global variables header-only pre C++ 17, but unable to do so until now

@shubham1206agra
Copy link
Contributor Author

Good, let me know when you need a full review, there is still a lot of work to do

Can you help in random.hpp one? I am trying to backport global variables header-only pre C++ 17, but unable to do so until now

Finally, its done. Bit of hacky. Can someone confirm whether I need to change some docs or not?

@shubham1206agra
Copy link
Contributor Author

@shrit Please help me in solving these circular dependencies in util files.

Copy link
Member

@rcurtin rcurtin left a 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
This reverts commit 6ce2580.
@shubham1206agra
Copy link
Contributor Author

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. 👍

@rcurtin I have reverted all commits related to util for now.
@shrit You can start detailed review for this now.

@shubham1206agra
Copy link
Contributor Author

Reminder for me: I will check e19c00a after sometime later.

@shrit Can you suggest me other ways to implement this?

Copy link
Member

@rcurtin rcurtin left a 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/core/dists/laplace_distribution.hpp Outdated Show resolved Hide resolved
src/mlpack/core/math/columns_to_blocks_impl.hpp Outdated Show resolved Hide resolved
src/mlpack/core/math/columns_to_blocks_impl.hpp Outdated Show resolved Hide resolved
src/mlpack/core/math/random.hpp Outdated Show resolved Hide resolved
src/mlpack/methods/radical/radical_impl.hpp Outdated Show resolved Hide resolved
shubham1206agra and others added 2 commits June 9, 2022 09:16
Co-authored-by: Ryan Curtin <ryan@ratml.org>
Copy link
Member

@rcurtin rcurtin left a 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!

Copy link
Member

@shrit shrit left a 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?

Comment on lines +21 to 24
#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>

Copy link
Member

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 👍

@shrit
Copy link
Member

shrit commented Jun 9, 2022

Thanks again, all green 💯 💯 🚀

@shrit shrit merged commit b7e6bd4 into mlpack:master Jun 9, 2022
@rcurtin
Copy link
Member

rcurtin commented Jun 9, 2022

@rcurtin are we ready for a release?

Almost! I think we still have one or two things to do until we can remove the libmlpack.so target entirely.

@shubham1206agra
Copy link
Contributor Author

@rcurtin are we ready for a release?

Almost! I think we still have one or two things to do until we can remove the libmlpack.so target entirely.

I think we need to take care of util folder.
Everything else belongs to bindings, as far as I know.

@rcurtin
Copy link
Member

rcurtin commented Jun 9, 2022

Right, there will be a little bit of trickiness in the util/ folder. The bindings don't need to be adapted.

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.

None yet

4 participants