mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Try to use avx_hs() - slow and requires alignment 4096 bits < (l.size*l.size*l.c)
May be faster only from 8192 bits and more.
This commit is contained in:
@ -862,6 +862,8 @@ void calculate_binary_weights(network net)
|
||||
if (l->xnor) {
|
||||
//printf("\n %d \n", j);
|
||||
size_t ldb_align = 256; // 256bit for AVX2
|
||||
if (l->size*l->size*l->c > 4096) ldb_align = 4096;
|
||||
|
||||
binary_transpose_align_weights(l, ldb_align);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user