keras2c icon indicating copy to clipboard operation
keras2c copied to clipboard

A simple library to deploy Keras neural networks in pure C for realtime applications

Results 11 keras2c issues
Sort by recently updated
recently updated
newest added

Hello, Because it is possible to use keras in python with double precision `keras.backend.set_floatx('float64') `, will you insert a option to create model.c, model.h and model_test.c with double precision ?...

Hallo; Here is my problem: This is the predicted value on the python side: [[0.00516781 0.99483216]] This is the predicted value of keras2c: 0.0138991503 0.986100852 Keras version 2.15.0 keras2c complied...

``` gcc -std=c99 -I./include/ -c -o fire_test.o fire_model.c -L./include/ -l:libkeras2c.a -lm fire_model.c: In function ‘fire_model’: fire_model.c:54402:15: warning: passing argument 1 of ‘k2c_LeakyReLU’ from incompatible pointer type [-Wincompatible-pointer-types] 54402 | k2c_LeakyReLU(&conv2d_output.array,&conv2d_output.numel,leaky_re_lu_alpha);...

The advanced activation tests were not testing the case when those activation layers were being used as a hidden layer. That way the behavior dealing with other layers weights and...

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...

I've been having issues matching the output of conv2d from keras to the output of keras2c. I've been trying to unit test the k2c_conv2d vs the output of tf.nn.conv2d. Below...

The code generated by keras2c is the following: ``` for (size_t i = 0; i < time_distributed_1_timesteps; ++i) { max_pooling2d_timeslice_input.array = &time_distributed_output.array[i * time_distributed_1_in_offset]; max_pooling2d_timeslice_output.array = &time_distributed_1_output.array[i * time_distributed_1_out_offset]; k2c_maxpool2d(&max_pooling2d_timeslice_output,...

Hello, I am trying to convert a LSTM NN to C. I was able to generate the C files using your library but when I try to run the example...

Hey folks, This is a nice library, but I'm running into package conflicts with Python, TF-Keras and Numpy. It seems like this library assumes an older version of Keras from...