XNOR-net tiny-yolo_xnor.cfg ~2x faster than cuDNN on CUDA (nVidia GPU Maxwell)

This commit is contained in:
AlexeyAB
2018-09-22 02:01:14 +03:00
parent 0224ba3d0d
commit 7dd97537fb
15 changed files with 511 additions and 42 deletions

View File

@ -793,6 +793,7 @@ void free_network(network net)
#ifdef GPU
if (gpu_index >= 0) cuda_free(net.workspace);
else free(net.workspace);
if (net.input_state_gpu) cuda_free(net.input_state_gpu);
if (*net.input_gpu) cuda_free(*net.input_gpu);
if (*net.truth_gpu) cuda_free(*net.truth_gpu);
if (net.input_gpu) free(net.input_gpu);
@ -866,7 +867,7 @@ void calculate_binary_weights(network net)
binary_align_weights(l);
if(net.layers[j + 1].use_bin_output) {
if(net.layers[j].use_bin_output) {
l->activation = LINEAR;
}
}