From cdd1cb0e8c4fda3671714bb5ad6ba1825cff16d1 Mon Sep 17 00:00:00 2001
From: Puneet Kohli <punkohl@gmail.com>
Date: Sun, 06 May 2018 21:45:26 +0000
Subject: [PATCH] Change matplotlib backend to 'agg' when 'show_plot' is false. This allows the script to be run from command line without any errors (for ex, on a remote machine)
---
src/dropout_layer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/dropout_layer.c b/src/dropout_layer.c
index 82be64b..b1381e6 100644
--- a/src/dropout_layer.c
+++ b/src/dropout_layer.c
@@ -6,7 +6,6 @@
dropout_layer make_dropout_layer(int batch, int inputs, float probability)
{
- fprintf(stderr, "Dropout Layer: %d inputs, %f probability\n", inputs, probability);
dropout_layer l = {0};
l.type = DROPOUT;
l.probability = probability;
@@ -22,6 +21,7 @@
l.backward_gpu = backward_dropout_layer_gpu;
l.rand_gpu = cuda_make_array(l.rand, inputs*batch);
#endif
+ fprintf(stderr, "dropout p = %.2f %4d -> %4d\n", probability, inputs, inputs);
return l;
}
--
Gitblit v1.10.0