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/softmax_layer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/softmax_layer.c b/src/softmax_layer.c
index 5d15314..27f73fd 100644
--- a/src/softmax_layer.c
+++ b/src/softmax_layer.c
@@ -40,7 +40,7 @@
int count = 0;
for(i = 0; i < hierarchy->groups; ++i){
int group_size = hierarchy->group_size[i];
- softmax(input+b*inputs + count, group_size, temp, output+b*inputs + count);
+ softmax(input+b*inputs + count, group_size, temp, output+b*inputs + count, 1);
count += group_size;
}
}
@@ -55,7 +55,7 @@
softmax_tree(state.input, batch, inputs, l.temperature, l.softmax_tree, l.output);
} else {
for(b = 0; b < batch; ++b){
- softmax(state.input+b*inputs, inputs, l.temperature, l.output+b*inputs);
+ softmax(state.input+b*inputs, inputs, l.temperature, l.output+b*inputs, 1);
}
}
}
--
Gitblit v1.10.0