modified SSE code building
This commit is contained in:
@@ -18,7 +18,7 @@ namespace ActivationFunction {
|
||||
* @brief Returns derivation of output, it is slower than version with output as it needs to compute output
|
||||
* @param input is input of function
|
||||
*/
|
||||
inline float derivatedOutput(const float &input) {
|
||||
inline float derivatedOutput(const float &input) const {
|
||||
return derivatedOutput(input,operator()(input));
|
||||
};
|
||||
|
||||
@@ -28,13 +28,13 @@ namespace ActivationFunction {
|
||||
* @param output is output of function
|
||||
* @see derivatedOutput
|
||||
*/
|
||||
virtual float derivatedOutput(const float &input, const float &output) =0;
|
||||
virtual float derivatedOutput(const float &input, const float &output) const=0;
|
||||
|
||||
/**
|
||||
* @brief Returns value of output
|
||||
* @param x is input of function
|
||||
*/
|
||||
virtual float operator()(const float &x)=0;
|
||||
virtual float operator()(const float &x) const=0;
|
||||
|
||||
/**
|
||||
* @brief Function returns clone of object
|
||||
|
||||
Reference in New Issue
Block a user