Skip to content
Permalink
Browse files

Serialization Fix

  • Loading branch information
kartikdutt18 committed Mar 24, 2020
1 parent 682d25f commit 0cf6af509690c9bb3b01236a60f92a50a6f29e8a
@@ -102,9 +102,9 @@ void ConcatPerformance<
OutputLayerType,
InputDataType,
OutputDataType
>::serialize(Archive& /* ar */, const unsigned int /* version */)
>::serialize(Archive& ar, const unsigned int /* version */)
{
// Nothing to do here.
ar & BOOST_SERIALIZATION_NVP(inSize);
}

} // namespace ann
@@ -87,7 +87,7 @@ class ReinforceNormal
* Serialize the layer
*/
template<typename Archive>
void serialize(Archive& /* ar */, const unsigned int /* version */);
void serialize(Archive& ar, const unsigned int /* version */);

private:
//! Standard deviation used during the forward and backward pass.
@@ -63,9 +63,9 @@ void ReinforceNormal<InputDataType, OutputDataType>::Backward(
template<typename InputDataType, typename OutputDataType>
template<typename Archive>
void ReinforceNormal<InputDataType, OutputDataType>::serialize(
Archive& /* ar */, const unsigned int /* version */)
Archive& ar, const unsigned int /* version */)
{
// Nothing to do here.
ar & BOOST_SERIALIZATION_NVP(stdev);
}

} // namespace ann
@@ -63,10 +63,11 @@ void HuberLoss<InputDataType, OutputDataType>::Backward(
template<typename InputDataType, typename OutputDataType>
template<typename Archive>
void HuberLoss<InputDataType, OutputDataType>::serialize(
Archive& /* ar */,
Archive& ar,
const unsigned int /* version */)
{
// Nothing to do here.
ar & BOOST_SERIALIZATION_NVP(delta);
ar & BOOST_SERIALIZATION_NVP(mean);
}

} // namespace ann
@@ -62,10 +62,10 @@ void KLDivergence<InputDataType, OutputDataType>::Backward(
template<typename InputDataType, typename OutputDataType>
template<typename Archive>
void KLDivergence<InputDataType, OutputDataType>::serialize(
Archive& /* ar */,
Archive& ar,
const unsigned int /* version */)
{
// Nothing to do here.
ar & BOOST_SERIALIZATION_NVP(takeMean);
}

} // namespace ann
@@ -47,10 +47,10 @@ void LogCoshLoss<InputDataType, OutputDataType>::Backward(
template<typename InputDataType, typename OutputDataType>
template<typename Archive>
void LogCoshLoss<InputDataType, OutputDataType>::serialize(
Archive& /* ar */,
Archive& ar,
const unsigned int /* version */)
{
// Nothing to do here.
ar & BOOST_SERIALIZATION_NVP(a);
}

} // namespace ann

0 comments on commit 0cf6af5

Please sign in to comment.
You can’t perform that action at this time.