mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
CUDA so fast
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#include "opencl.h"
|
||||
#include "cuda.h"
|
||||
#ifndef ACTIVATIONS_H
|
||||
#define ACTIVATIONS_H
|
||||
|
||||
@ -14,9 +14,8 @@ float gradient(float x, ACTIVATION a);
|
||||
void gradient_array(const float *x, const int n, const ACTIVATION a, float *delta);
|
||||
void activate_array(float *x, const int n, const ACTIVATION a);
|
||||
#ifdef GPU
|
||||
cl_kernel get_activation_kernel();
|
||||
void activate_array_ongpu(cl_mem x, int n, ACTIVATION a);
|
||||
void gradient_array_ongpu(cl_mem x, int n, ACTIVATION a, cl_mem delta);
|
||||
void activate_array_ongpu(float *x, int n, ACTIVATION a);
|
||||
void gradient_array_ongpu(float *x, int n, ACTIVATION a, float *delta);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user