diff --git a/src/mlpack/methods/ann/layer/dropout.hpp b/src/mlpack/methods/ann/layer/dropout.hpp index 820b239a1d..939bd67d09 100644 --- a/src/mlpack/methods/ann/layer/dropout.hpp +++ b/src/mlpack/methods/ann/layer/dropout.hpp @@ -58,18 +58,6 @@ class DropoutType : public Layer */ DropoutType(const double ratio = 0.5); - //! Copy Constructor. - DropoutType(const DropoutType& layer); - - //! Move Constructor. - DropoutType(const DropoutType&&); - - //! Copy assignment operator. - DropoutType& operator=(const DropoutType& layer); - - //! Move assignment operator. - DropoutType& operator=(DropoutType&& layer); - //! Clone the DropoutType object. This handles polymorphism correctly. DropoutType* Clone() const { return new DropoutType(*this); } diff --git a/src/mlpack/methods/ann/layer/dropout_impl.hpp b/src/mlpack/methods/ann/layer/dropout_impl.hpp index 92b6811d74..6f38c25822 100644 --- a/src/mlpack/methods/ann/layer/dropout_impl.hpp +++ b/src/mlpack/methods/ann/layer/dropout_impl.hpp @@ -28,50 +28,6 @@ DropoutType::DropoutType( // Nothing to do here. } -template -DropoutType::DropoutType( - const DropoutType& layer) : - ratio(layer.ratio), - scale(layer.scale) -{ - // Nothing to do here. -} - -template -DropoutType::DropoutType( - const DropoutType&& layer) : - ratio(std::move(layer.ratio)), - scale(std::move(scale)) -{ - // Nothing to do here. -} - -template -DropoutType& DropoutType:: -operator=(const DropoutType& layer) -{ - if (this != &layer) - { - ratio = layer.ratio; - scale = layer.scale; - } - - return *this; -} - -template -DropoutType& DropoutType:: -operator=(DropoutType&& layer) -{ - if (this != &layer) - { - ratio = std::move(layer.ratio); - scale = std::move(layer.scale); - } - - return *this; -} - template void DropoutType::Forward( const InputType& input,