<p>This is a Microsoft bug. I hope there is a work around:</p>

<p>...\mlpack\src\mlpack\methods\ann\rnn_impl.hpp(302): fatal error C1001: An internal error has occurred in the compiler.<br>
  (compiler file 'msc1.cpp', line 1421)<br>
   To work around this problem, try simplifying or changing the program near the locations listed above.<br>
  Please choose the Technical Support command on the Visual C++<br>
   Help menu, or open the Technical Support help file for more information<br>
  ...\mlpack\src\mlpack\methods\ann\rnn_impl.hpp(283): note: while compiling class template member function 'void mlpack::ann::RNNstd::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;::Gradient(const arma::mat &amp;,const size_t,arma::mat &amp;)'<br>
  ...\mlpack\src\mlpack\core\optimizers\sgd\sgd_impl.hpp(88): note: see reference to function template instantiation 'void mlpack::ann::RNNstd::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;::Gradient(const arma::mat &amp;,const size_t,arma::mat &amp;)' being compiled<br>
  ...\mlpack\src\mlpack\core\optimizers\sgd\sgd_impl.hpp(33): note: while compiling class template member function 'double mlpack::optimization::SGDmlpack::ann::RNN&lt;std::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;&gt;::Optimize(arma::mat &amp;)'<br>
  ...\mlpack\src\mlpack\methods\ann\rnn_impl.hpp(168): note: see reference to function template instantiation 'double mlpack::optimization::SGDmlpack::ann::RNN&lt;std::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;&gt;::Optimize(arma::mat &amp;)' being compiled<br>
  ...\mlpack\src\mlpack\core\optimizers\sgd\sgd_impl.hpp(22): note: while compiling class template member function 'mlpack::optimization::SGDmlpack::ann::RNN&lt;std::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;&gt;::SGD(DecomposableFunctionType &amp;,const double,const size_t,const double,const bool)'<br>
          with<br>
          [<br>
              DecomposableFunctionType=mlpack::ann::RNNstd::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;<br>
          ]<br>
  ...\mlpack\src\mlpack\tests\recurrent_network_test.cpp(108): note: see reference to function template instantiation 'mlpack::optimization::SGDmlpack::ann::RNN&lt;std::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;&gt;::SGD(DecomposableFunctionType &amp;,const double,const size_t,const double,const bool)' being compiled<br>
          with<br>
          [<br>
              DecomposableFunctionType=mlpack::ann::RNNstd::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;<br>
          ]<br>
  ...\mlpack\src\mlpack\tests\recurrent_network_test.cpp(108): note: see reference to class template instantiation 'mlpack::optimization::SGDmlpack::ann::RNN&lt;std::tuple&lt;mlpack::ann::LinearLayer&lt;arma::mat,arma::mat &amp;,mlpack::ann::RecurrentLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;,mlpack::ann::LinearLayerarma::mat,arma::mat &amp;,mlpack::ann::BaseLayermlpack::ann::LogisticFunction,arma::mat,arma::mat &amp;&gt;,mlpack::ann::BinaryClassificationLayer,mlpack::ann::RandomInitialization,mlpack::ann::MeanSquaredErrorFunction&gt;&gt;' being compiled</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/534">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNByiMULdR93l6uweYZ2tEbjDF3fks5ppKTXgaJpZM4Hm1v2.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/534"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>