25 lines
554 B
C++
25 lines
554 B
C++
#pragma once
|
|
|
|
#include <xmmintrin.h>
|
|
|
|
#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:
|
|
using ActivationFunction::operator();
|
|
|
|
/**
|
|
* @brief Returns value of four outputs
|
|
* @param x is float[4], in every array value can be stored
|
|
*/
|
|
virtual __m128 operator()(const __m128 &x) const=0;
|
|
};
|
|
}
|
|
} |