Skip to content

Commit 8b67948

Browse files
committed
simplify mnist sample
1 parent e4e6c90 commit 8b67948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mnist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
static int threads = -1;
3838
static int batch_size = 32;
39-
static int epoch_count = 15;
39+
static int epoch_count = 5;
4040
static int export_onnx = 0;
4141

4242
//----------------------------------
@@ -216,8 +216,8 @@ int main(int argc, char *argv[])
216216

217217
// define our network - deeper architecture with ReLU for better accuracy
218218
ann_add_layer(pnet, 784, LAYER_INPUT, ACTIVATION_NULL);
219-
ann_add_layer(pnet, 128, LAYER_HIDDEN, ACTIVATION_RELU);
220219
ann_add_layer(pnet, 64, LAYER_HIDDEN, ACTIVATION_RELU);
220+
// ann_add_layer(pnet, 64, LAYER_HIDDEN, ACTIVATION_RELU);
221221
ann_add_layer(pnet, 10, LAYER_OUTPUT, ACTIVATION_SOFTMAX);
222222

223223
real *data = NULL, *test_data = NULL;

0 commit comments

Comments
 (0)