Re-enable fast tanh approximation

This commit is contained in:
Mike Oliphant
2023-04-03 15:10:33 -07:00
parent 9065de91c0
commit 43f12ad73b
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ set(SOURCES nam_lv2.cpp
nam_plugin.h) nam_plugin.h)
set(NAM_SOURCES ../deps/NeuralAmpModelerCore/NAM/activations.h set(NAM_SOURCES ../deps/NeuralAmpModelerCore/NAM/activations.h
../deps/NeuralAmpModelerCore/NAM/activations.cpp
../deps/NeuralAmpModelerCore/NAM/version.h ../deps/NeuralAmpModelerCore/NAM/version.h
../deps/NeuralAmpModelerCore/NAM/lstm.h ../deps/NeuralAmpModelerCore/NAM/lstm.h
../deps/NeuralAmpModelerCore/NAM/lstm.cpp ../deps/NeuralAmpModelerCore/NAM/lstm.cpp
+3
View File
@@ -3,10 +3,13 @@
#include <utility> #include <utility>
#include "nam_plugin.h" #include "nam_plugin.h"
#include "activations.h"
namespace NAM { namespace NAM {
Plugin::Plugin() Plugin::Plugin()
{ {
// Turn on fast tanh approximation
activations::Activation::enable_fast_tanh();
} }
bool Plugin::initialize(double rate, const LV2_Feature* const* features) noexcept bool Plugin::initialize(double rate, const LV2_Feature* const* features) noexcept