GiorgosXou/NeuralNetworks

Custom activation function example error: "Der" does not give a valid preprocessing token

GiorgosXou opened this issue · 0 comments

That's why you should always make sure about comments in front of preprocessor-directives:

#define CUSTOM_AF1 my_sigmoid // My "custom" activation function
#define CUSTOM_DF1 // Comment to disable Derivative function

Just remove comments to fix it lol