[layers/activation_func] Apply template on activation functions