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
ANN No copy ctor for FNN #510
Comments
I implemented copy ctor. Hence the bug may be closed. |
Want to file a pull request? Maybe we could incorporate your code. |
Sure! I'll let you know when I am ready. |
I ran into a circular reference while testing. To be more precise: On Fri, Jan 29, 2016 at 2:10 PM, Ryan Curtin notifications@github.com
Joseph Chakravarti Mariadassou |
I added move constructor and move assignment on most of the layers in the pull request of #451. |
I made the following changes: (b) removed Law of Demeter violations as in
(c) change optimizer from pointer to shared pointer (TODO: make Optimizer a (d) removed destructors and copy constructors to allow compiler to generate defaults. As there are no raw pointers there is no need for destructor. (e) Added a few unit tests for copy ctor (f) All the unit tests except for a couple unrelated to ANN ran to success The result is in https://github.com/theSundayProgrammer/mlpack |
Sorry for the slow response, I didn't really have a chance to look into this until today. If you'd like to open a PR, that might be a good idea. A couple quick notes:
If you open a PR, we can discuss in more detail and probably get @zoq's opinion, which will be the important opinion here. |
I am trying to modify mlpack::ann::BuildVanillaNetwork to return FFN:
return FFN<decltype(modules), decltype(classOutputLayer), PerformanceFunctionType>(modules, classOutputLayer);
But compilation fails with:
... attempting to reference a deleted function.
Perhaps, one of the items in the tuple does not support copy construction.
The text was updated successfully, but these errors were encountered: