mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Compile fix
This commit is contained in:
@ -997,6 +997,7 @@ void calculate_binary_weights(network net)
|
||||
l->activation = LINEAR;
|
||||
}
|
||||
|
||||
#ifdef GPU
|
||||
// fuse conv_xnor + shortcut -> conv_xnor
|
||||
if ((j + 1) < net.n && net.layers[j].type == CONVOLUTIONAL) {
|
||||
layer *sc = &net.layers[j + 1];
|
||||
@ -1009,6 +1010,7 @@ void calculate_binary_weights(network net)
|
||||
net.layers[j + 1].forward_gpu = forward_blank_layer;
|
||||
}
|
||||
}
|
||||
#endif // GPU
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user