[mlpack-git] [mlpack/mlpack] Replaced SortStruct by std::pair (#721)
Ryan Curtin
notifications at github.com
Tue Jul 12 09:13:20 EDT 2016
> @@ -58,7 +58,7 @@ class OneHotLayer
> output = inputActivations;
> output.zeros();
>
> - arma::uword maxIndex;
> + arma::uword maxIndex = 0;
Yeah; I agree that the -Wuninitialized is erroneous in this case, but I am not sure there is any other way to stop that warning from appearing here other than initializing the index to 0. Do you know any other ways?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/721/files/640f3a7859ea8d400bc6fed6b4395c2291ba0259..ee2a8a1461a33edd830747dccde117ac2cfb12b7#r70434498
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160712/c1dbe6a5/attachment.html>
More information about the mlpack-git
mailing list