Skip to content
Snippets Groups Projects
Commit beda4048 authored by Lorenzo Moneta's avatar Lorenzo Moneta
Browse files

Fix memory leak in UpdateWeights in Cuda

parent ab20fee0
No related branches found
No related tags found
No related merge requests found
......@@ -385,6 +385,9 @@ void TCuda<AFloat>::CalculateConvWeightGradients(TCudaMatrix<AFloat> & weightGra
// Launch the kernel using our device pointers.
::TMVA::DNN::Cuda::UpdateWeights<<<gridDims, blockDims>>>(weightGradients.GetDataPointer(), dB, batchSize,
depth, nLocalViewPixels);
delete [] hB;
cudaFree(dB);
}
//____________________________________________________________________________
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment