XNOR coalesced memory access, and avoid bank conflicts

This commit is contained in:
AlexeyAB
2018-09-14 22:52:26 +03:00
parent 8e0b265067
commit 03e95320a1
6 changed files with 488 additions and 27 deletions

View File

@ -862,8 +862,13 @@ void calculate_binary_weights(network net)
if (l->xnor) {
//printf("\n %d \n", j);
l->lda_align = 256; // 256bit for AVX2
//if (l->size*l->size*l->c >= 2048) l->lda_align = 512;
binary_align_weights(l);
if(net.layers[j + 1].use_bin_output) {
l->activation = LINEAR;
}
}
}
}