<p>I have a question about the serialization, FFN accept the reference of the outputLayer, but this make it very hard to serialize, could I make it take the copy or rvalue of the outputLayer?</p>

<pre><code>template&lt;typename Network, typename OutputLayer&gt;
FFN(Network &amp;&amp;network, OutputLayer &amp;&amp;outputLayer,
    PerformanceFunction performanceFunction = PerformanceFunction()) : 
    network(std::forward&lt;Network&gt;(network)),
    outputLayer(std::forward&lt;outputLayer&gt;(outputLayer)),
    performanceFunction(std::move(performanceFunction))
//
</code></pre>

<p>If the users need to access the output layer, we could add a public api for them to access it Any suggestions?</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/495">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFG72C2W8oam-OQH_IRBYZUkhf-ltks5pPcyYgaJpZM4G0YVk.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/495"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>