Remove ar parameter to avoid the warning

Serialization is not used in this layer, therefore the warning of
unused parameter is becoming annoying when trying to compile the
mlpack_test making it impossible to find different errors in small
terminal. Since we are using boost_visitor, the unfolding of layers
is taking several pages of terminal to print this small warning.

Hoping that this will mitigate one of the warning.

Signed-off-by: Omar Shrit <omar@shrit.me>
This commit is contained in:
Omar Shrit
2021-09-23 23:19:09 +01:00
parent 7ffc8088ef
commit b21f30720a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class ReLU6
* Serialize the layer.
*/
template<typename Archive>
void serialize(Archive& ar, const uint32_t /* version */);
void serialize(Archive& /* ar */, const uint32_t /* version */);
private:
//! Locally-stored output parameter object.
+1 -1
View File
@@ -65,7 +65,7 @@ void ReLU6<InputDataType, OutputDataType>::Backward(
template<typename InputDataType, typename OutputDataType>
template<typename Archive>
void ReLU6<InputDataType, OutputDataType>::serialize(
Archive& ar,
Archive& /* ar */,
const uint32_t /* version */)
{
// Nothing to do here.