Fix compiler warning

g++ warning:

    src/lstm/functions.h:152:35: warning:
        unused parameter ‘x’ [-Wunused-parameter]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2019-02-14 10:25:37 +01:00
parent 3556152412
commit c0523ee5a2

View File

@ -149,7 +149,7 @@ struct HPrime {
}
};
struct UnityFunc {
inline double operator()(double x) const { return 1.0; }
inline double operator()(double /*x*/) const { return 1.0; }
};
struct IdentityFunc {
inline double operator()(double x) const { return x; }