Skip to content

Commit 7b5a840

Browse files
committedDec 9, 2024
updates
1 parent aa11201 commit 7b5a840

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+479464
-115508
lines changed
 

‎gpu_compute/bin/program

45.3 KB
Binary file not shown.

‎gpu_compute/inc/activations_cpu.h

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#ifndef ACTIVATIONS_CPU_H
2+
#define ACTIVATIONS_CPU_H
3+
4+
float sigmoid(float x);
5+
float sigmoid_derivative(float x);
6+
tensor1d sigmoid1d_activation(tensor1d t1d);
7+
tensor1d sigmoid1d_activation_derivative(tensor1d t1d);
8+
tensor2d sigmoid2d_activation(tensor2d t2d);
9+
tensor2d sigmoid2d_activation_derivative(tensor2d t2d);
10+
11+
float relu(float x);
12+
float relu_derivative(float x);
13+
tensor1d relu1d_activation(tensor1d t1d);
14+
tensor1d relu1d_activation_derivative(tensor1d t1d);
15+
tensor2d relu2d_activation(tensor2d t2d);
16+
tensor2d relu2d_activation_derivative(tensor2d t2d);
17+
18+
float leaky_relu(float x);
19+
float leaky_relu_derivative(float x);
20+
tensor1d leaky_relu1d_activation(tensor1d t1d);
21+
tensor1d leaky_relu1d_activation_derivative(tensor1d t1d);
22+
tensor2d leaky_relu2d_activation(tensor2d t2d);
23+
tensor2d leaky_relu2d_activation_derivative(tensor2d t2d);
24+
25+
float tanh_(float x);
26+
float tanh_derivative(float x);
27+
tensor1d tanh1d_activation(tensor1d t1d);
28+
tensor1d tanh1d_activation_derivative(tensor1d t1d);
29+
tensor2d tanh2d_activation(tensor2d t2d);
30+
tensor2d tanh2d_activation_derivative(tensor2d t2d);
31+
32+
#endif

0 commit comments

Comments
 (0)