#include #include #include #include "function.h" float max(float a, float b) { return a 0) return 1; return 0; } float tanh_(float x) { return tanh(x); } float tanh_derivative(float x) { float a = tanh(x); return 1 - a*a; } void apply_softmax_input(float ***input, int depth, int rows, int columns) { int i, j, k; float m = FLT_MIN; float sum=0; for (i=0; i