[mlpack-git] master: Add new connection trait. (d60fca2)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Sun May 3 16:15:44 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/0f31abbdebcd34e2113d8acf47c1d0b087377921...174d2de995a3fe343cd92d158730f3afa03e622d
>---------------------------------------------------------------
commit d60fca25a246dd4ff60b94eb1cec96e987c8758b
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date: Sun May 3 13:55:18 2015 +0200
Add new connection trait.
>---------------------------------------------------------------
d60fca25a246dd4ff60b94eb1cec96e987c8758b
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 63cda3d..b85b648 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 1ad50b9..0f59ea6 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 8dbe5e0..f93b3bb 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
More information about the mlpack-git
mailing list