From e34c5aacdc64264f0644e75d25a0044d7af52dfd Mon Sep 17 00:00:00 2001 From: RishabhGarg108 Date: Mon, 2 Nov 2020 15:10:57 +0530 Subject: [PATCH] Added WeightSize() to mean pooling layer --- src/mlpack/methods/ann/layer/mean_pooling.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mlpack/methods/ann/layer/mean_pooling.hpp b/src/mlpack/methods/ann/layer/mean_pooling.hpp index e8575752db..d181276585 100644 --- a/src/mlpack/methods/ann/layer/mean_pooling.hpp +++ b/src/mlpack/methods/ann/layer/mean_pooling.hpp @@ -140,6 +140,9 @@ class MeanPooling bool Deterministic() const { return deterministic; } //! Modify the value of the deterministic parameter. bool& Deterministic() { return deterministic; } + + //! Get the size of the weights. + size_t WeightSize() const { return 0; } /** * Serialize the layer.