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
you forgot the .f on the end of the 1's so it's causing a double to float cast
also one other little thing, in the exported weights the weight float arrays could be defined as const in the output .c file since there should be no point where the weights are ever changed during inference.
The text was updated successfully, but these errors were encountered:
https://github.com/f0uriest/keras2c/blob/master/include/k2c_activations.c#L114
change this line to
x[i] = 1.f/(1.f+expf(-x[i]));
you forgot the .f on the end of the 1's so it's causing a double to float cast
also one other little thing, in the exported weights the weight float arrays could be defined as const in the output .c file since there should be no point where the weights are ever changed during inference.
The text was updated successfully, but these errors were encountered: