Add Kernels namespace

This commit is contained in:
2024-03-11 21:04:23 +01:00
parent e0178e2d5c
commit d2ab78fbc7
18 changed files with 188 additions and 186 deletions

View File

@@ -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