Skip to content

Improve activations' implementations using Eigen better #143

@sdatkinson

Description

@sdatkinson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions