From d60fca25a246dd4ff60b94eb1cec96e987c8758b Mon Sep 17 00:00:00 2001 From: Marcus Edel Date: Sun, 3 May 2015 13:55:18 +0200 Subject: [PATCH] Add new connection trait. --- src/mlpack/methods/ann/connections/connection_traits.hpp | 5 +++++ src/mlpack/methods/ann/connections/fullself_connection.hpp | 1 + src/mlpack/methods/ann/connections/self_connection.hpp | 1 + 3 files changed, 7 insertions(+) diff --git a/src/mlpack/methods/ann/connections/connection_traits.hpp b/src/mlpack/methods/ann/connections/connection_traits.hpp index 63cda3dd8f..b85b648304 100644 --- a/src/mlpack/methods/ann/connections/connection_traits.hpp +++ b/src/mlpack/methods/ann/connections/connection_traits.hpp @@ -31,6 +31,11 @@ class ConnectionTraits * This is true if the connection is a fullself connection. */ static const bool IsFullselfConnection = false; + + /** + * This is true if the connection is a pooling connection. + */ + static const bool IsPoolingConnection = false; }; }; // namespace ann diff --git a/src/mlpack/methods/ann/connections/fullself_connection.hpp b/src/mlpack/methods/ann/connections/fullself_connection.hpp index 1ad50b9961..0f59ea63ee 100644 --- a/src/mlpack/methods/ann/connections/fullself_connection.hpp +++ b/src/mlpack/methods/ann/connections/fullself_connection.hpp @@ -154,6 +154,7 @@ class ConnectionTraits< public: static const bool IsSelfConnection = false; static const bool IsFullselfConnection = true; + static const bool IsPoolingConnection = false; }; }; // namespace ann diff --git a/src/mlpack/methods/ann/connections/self_connection.hpp b/src/mlpack/methods/ann/connections/self_connection.hpp index 8dbe5e006e..f93b3bb588 100644 --- a/src/mlpack/methods/ann/connections/self_connection.hpp +++ b/src/mlpack/methods/ann/connections/self_connection.hpp @@ -159,6 +159,7 @@ class ConnectionTraits< public: static const bool IsSelfConnection = true; static const bool IsFullselfConnection = false; + static const bool IsPoolingConnection = false; }; }; // namespace ann