public void GpuCudaDevicePointer() { CudaDeviceVariable <float> gpuPointer = new float[colorImage.Width * colorImage.Height * 3]; gpuPointer.CopyToDevice(floatYoloFormatArray); var yoloItems = yolo.DetectCuda(gpuPointer.DevicePointer.Pointer, colorImage.Width, colorImage.Height); WriteDetectedObjectsOnConsole(yoloItems); gpuPointer.Dispose(); }