mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-06-19 09:54:00 +02:00
Re-enable fast tanh approximation
This commit is contained in:
Vendored
+1
-1
Submodule deps/NeuralAmpModelerCore updated: 48e91a64e6...c5dad8f5bd
@@ -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,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
|
||||||
|
|||||||
Reference in New Issue
Block a user