#pragma once #include #include "./ActivationFunction.h" namespace NeuralNetwork { namespace ActivationFunction { /** * @author Tomas Cernik (Tom.Cernik@gmail.com) * @brief Abstract class of activation function with support of SSE */ class StreamingActivationFunction : public ActivationFunction { public: virtual float derivatedOutput(const float &input,const float &output)=0; virtual float operator()(const float &x)=0; /** * @brief Returns value of four outputs * @param x is float[4], in every array value can be stored */ virtual __m128 operator()(const __m128 &x)=0; }; } }