<p>Pull request <a href="https://github.com/mlpack/mlpack/pull/542" class="issue-link js-issue-link" data-url="https://github.com/mlpack/mlpack/issues/542" data-id="137949066" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#542</a> should fix this issue, the problem is the parameter name "network" hide the name of data member "network".</p>

<p>If you want to save memory when make the tuple, you can move the layer too</p>

<pre><code>auto modules = std::make_tuple(std::move(inputLayer), 
std::move(inputBiasLayer), std::move(inputBaseLayer), 
std::move(hiddenLayer1), std::move(hiddenBiasLayer1), 
std::move(outputLayer));

</code></pre>

<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/531#issuecomment-191355396">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMB01lUGn5q4AgVtRLAA9D4Okh6Kks5ppdMJgaJpZM4HmbCC.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/531#issuecomment-191355396"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>