mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Optimized resizing of region_layer for random=1
This commit is contained in:
@ -378,6 +378,7 @@ int resize_network(network *net, int w, int h)
|
||||
}
|
||||
#ifdef GPU
|
||||
if(gpu_index >= 0){
|
||||
printf(" try to allocate workspace, ");
|
||||
net->workspace = cuda_make_array(0, (workspace_size-1)/sizeof(float)+1);
|
||||
printf(" CUDA allocate done! \n");
|
||||
}else {
|
||||
|
Reference in New Issue
Block a user