Fixing issues from @zoq's review

This commit is contained in:
Konstantin Sidorov
2017-07-25 16:29:57 +03:00
parent b81ca59a9e
commit 3db79052c1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ class SGD
bool& ResetPolicy() { return resetPolicy; }
//! Get the update policy.
UpdatePolicyType UpdatePolicy() const { return updatePolicy; }
const UpdatePolicyType& UpdatePolicy() const { return updatePolicy; }
//! Modify the update policy.
UpdatePolicyType& UpdatePolicy() { return updatePolicy; }
@@ -47,10 +47,10 @@ void CrossEntropyError<InputDataType, OutputDataType>::Backward(
template<typename InputDataType, typename OutputDataType>
template<typename Archive>
void CrossEntropyError<InputDataType, OutputDataType>::Serialize(
Archive& /* ar */,
Archive& ar,
const unsigned int /* version */)
{
// Nothing to do here.
ar & data::CreateNVP(eps, "eps");
}
} // namespace ann