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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user