[activation] add header template
authorPaul Brossier <piem@piem.org>
Thu, 10 Jan 2019 18:13:09 +0000 (19:13 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 10 Jan 2019 18:13:09 +0000 (19:13 +0100)
src/ai/activation.h [new file with mode: 0644]

diff --git a/src/ai/activation.h b/src/ai/activation.h
new file mode 100644 (file)
index 0000000..378c5f8
--- /dev/null
@@ -0,0 +1,32 @@
+
+/*
+  Copyright (C) 2018 Paul Brossier <piem@aubio.org>
+
+  This file is part of aubio.
+
+  aubio is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  aubio is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with aubio.  If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#ifndef AUBIO_ACTIVATION_H
+#define AUBIO_ACTIVATION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void aubio_activation_relu(aubio_tensor_t *t);
+void aubio_activation_sigmoid(aubio_tensor_t *t);
+
+#endif