Tanh uses a lot of compute (hence "fast tanh"). But this e.g.:
|
void apply(float* data, long size) override |
|
{ |
|
for (long pos = 0; pos < size; pos++) |
|
{ |
|
data[pos] = std::tanh(data[pos]); |
|
} |
|
} |
should be able to be implemented more idiomatically with Eigen.
It would also be nice for any change related to this Issue have some profiling results attached since this is a performance Issue.
Tanh uses a lot of compute (hence "fast tanh"). But this e.g.:
NeuralAmpModelerCore/NAM/activations.h
Lines 75 to 81 in 8469687
should be able to be implemented more idiomatically with Eigen.
It would also be nice for any change related to this Issue have some profiling results attached since this is a performance Issue.