mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 09:44:28 +00:00
Add Kernels namespace
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
#ifndef ACTIVATIONS_H
|
||||
#define ACTIVATIONS_H
|
||||
|
||||
__global__ void
|
||||
sigmoid_kernel(const float* __restrict__ src, float* __restrict__ dst, int len);
|
||||
namespace Kernels {
|
||||
|
||||
__global__ void
|
||||
relu_kernel(const float* __restrict__ src, float* __restrict__ dst, int len);
|
||||
sigmoid(const float* __restrict__ src, float* __restrict__ dst, int len);
|
||||
|
||||
__global__ void
|
||||
linear_kernel(const float* __restrict__ src, float* __restrict__ dst, int len);
|
||||
relu(const float* __restrict__ src, float* __restrict__ dst, int len);
|
||||
|
||||
enum Activation {
|
||||
SIGMOID,
|
||||
RELU,
|
||||
LINEAR
|
||||
};
|
||||
} // namespace Kernels
|
||||
|
||||
#endif // ACTIVATIONS_H
|
||||
Reference in New Issue
Block a user