attractivechaos / kann

A lightweight C library for artificial neural networks
Other
678 stars 117 forks source link

mnist-cnn example fail assert on training #33

Open vnen opened 4 years ago

vnen commented 4 years ago

I'm not sure if I'm missing something but I tried the `mnist-cnn example in the same ways as the README, but the training fails an assert on line 51:

https://github.com/attractivechaos/kann/blob/94a68cd18c0cfb4c40b80f85ab3d579a8b9063a5/examples/mnist-cnn.c#L51

I printed x->n_col and the result is 0. I'm not sure if the problem is the code or in the data (I got the data from this repo as well, as stated in the examples readme file).

I tried removing the assert but it naturally just segfaults elsewhere.

The mlp example works fine, so I assume it isn't the data.