Fixed race condition in server

This commit is contained in:
Joseph Redmon
2014-12-08 11:48:57 -08:00
parent d81ab1942b
commit cb1f33c6ae
13 changed files with 56 additions and 41 deletions

View File

@@ -280,7 +280,6 @@ void learn_bias_convolutional_layer_ongpu(convolutional_layer layer)
{
int size = convolutional_out_height(layer) * convolutional_out_width(layer);
cl_setup();
cl_kernel kernel = get_convolutional_learn_bias_kernel();
cl_command_queue queue = cl.queue;
@@ -315,7 +314,6 @@ void bias_output_gpu(const convolutional_layer layer)
int out_w = convolutional_out_width(layer);
int size = out_h*out_w;
cl_setup();
cl_kernel kernel = get_convolutional_bias_kernel();
cl_command_queue queue = cl.queue;