mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
ZED 3D Camera support added to ./uselib (yolo_console_cpp.exe) example
This commit is contained in:
@ -2,12 +2,6 @@
|
||||
#include "curand.h"
|
||||
#include "cublas_v2.h"
|
||||
|
||||
#ifdef CUDNN
|
||||
#ifndef USE_CMAKE_LIBS
|
||||
#pragma comment(lib, "cudnn.lib")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "convolutional_layer.h"
|
||||
#include "batchnorm_layer.h"
|
||||
#include "gemm.h"
|
||||
@ -15,7 +9,7 @@
|
||||
#include "im2col.h"
|
||||
#include "col2im.h"
|
||||
#include "utils.h"
|
||||
#include "cuda.h"
|
||||
#include "dark_cuda.h"
|
||||
|
||||
|
||||
__global__ void binarize_kernel(float *x, int n, float *binary)
|
||||
@ -598,6 +592,7 @@ void forward_convolutional_layer_gpu(convolutional_layer l, network_state state)
|
||||
|
||||
void backward_convolutional_layer_gpu(convolutional_layer l, network_state state)
|
||||
{
|
||||
if(state.net.try_fix_nan) constrain_ongpu(l.outputs*l.batch, 1, l.delta_gpu, 1);
|
||||
gradient_array_ongpu(l.output_gpu, l.outputs*l.batch, l.activation, l.delta_gpu);
|
||||
|
||||
if (!l.batch_normalize)
|
||||
|
Reference in New Issue
Block a user