You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am currentlly trying to create a NN with different types of activation functions per layers, however when I try to use #define ACTIVATION__PER_LAYER, I get the following errors on Arduino IDE :
π¨π¦ππ‘π [Ζx] |β£ Sigmoid |β£ Tanh |β₯|
#pragma message( STR(INFORMATION) )
^
C:\Users\...\Arduino\libraries\NeuralNetwork\src/NeuralNetwork.h:900:9: error: 'activation_Function_ptrs' declared as an 'inline' field
};
^
C:\Users\...\Arduino\libraries\NeuralNetwork\src/NeuralNetwork.h:900:9: error: 'constexpr' needed for in-class initialization of static data member 'float (NeuralNetwork::Layer::* const NeuralNetwork::activation_Function_ptrs [2])(const float&)' of non-integral type [-fpermissive]
C:\Users\...\Arduino\libraries\NeuralNetwork\src/NeuralNetwork.h:943:13: error: 'derivative_Function_ptrs' declared as an 'inline' field
};
^
C:\Users\...Documents\Arduino\libraries\NeuralNetwork\src/NeuralNetwork.h:943:13: error: 'constexpr' needed for in-class initialization of static data member 'float (NeuralNetwork::Layer::* const NeuralNetwork::derivative_Function_ptrs [2])(const float&)' of non-integral type [-fpermissive]
exit status 1
Compilation error: exit status 1"
How can i fix this ? I believe this might be an issue with the gcc version ?
The text was updated successfully, but these errors were encountered:
β¦with old versions of `gcc`
I guess i used `inline` for one of those reasons: either because I
shamelessly copy pasted stackoverflow code (most probably lol), OR
because I used to have other files besides the header one and that
didn't work? OR because it felt cool\right or something idk... maybe I
should investigate this at one time. an array of pointers to functions,
definatelly wasn't something I knew at that time...Anyways love you (:
Hello, I am currentlly trying to create a NN with different types of activation functions per layers, however when I try to use
#define ACTIVATION__PER_LAYER
, I get the following errors on Arduino IDE :How can i fix this ? I believe this might be an issue with the gcc version ?
The text was updated successfully, but these errors were encountered: