[mlpack-git] [mlpack] Neural Network: RNN test Internal Compiler Error on MSVC (#534)

Joseph Mariadassou notifications at github.com
Tue Mar 1 15:43:04 EST 2016


This is a Microsoft bug. I hope there is a work around:


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


---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/534
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160301/7b69f103/attachment-0001.html>


More information about the mlpack-git mailing list