[mlpack-git] [mlpack/mlpack] Inception layer (#757)

Tham notifications at github.com
Sun Aug 14 08:38:06 EDT 2016


> +#include <mlpack/methods/ann/init_rules/random_init.hpp>
> +#include <mlpack/methods/ann/cnn.hpp>
> +
> +#include <boost/test/unit_test.hpp>
> +#include "test_tools.hpp"
> +
> +using namespace mlpack;
> +using namespace mlpack::ann;
> +using namespace mlpack::optimization;
> +
> +
> +BOOST_AUTO_TEST_SUITE(InceptionLayerTest);
> +
> +void Test(arma::mat m1, arma::mat m2)
> +{
> +  for (size_t i = 0; i < m1.n_cols; ++i)

>I am comparing all columns of m1 with all columns of m2. Is this incorrect?

Nope, because m1(i) access single data of the arma::mat but not "a column of the mat".
If you want to make sure every columns have the same value, I think it is same as make sure all of the data as equal, change it to n_elem should do the tricks. 

-- 
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/757/files/06d923321f246f2c6ead9ad56e99309fe24a6f5c#r74701054
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160814/8980cdfe/attachment-0001.html>


More information about the mlpack-git mailing list