Skip to content

Commit 78158e3

Browse files
authored
Merge pull request #7 from roboticarm2000/patch-1
declare k2c_activationType* as extern
2 parents 653745a + 3e2c288 commit 78158e3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

include/k2c_include.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ void k2c_softmax_func(float * x, const size_t size);
2323
void k2c_softplus_func(float * x, const size_t size);
2424
void k2c_softsign_func(float * x, const size_t size);
2525
typedef void k2c_activationType(float * x, const size_t size);
26-
k2c_activationType * k2c_linear;
27-
k2c_activationType * k2c_exponential;
28-
k2c_activationType * k2c_relu;
29-
k2c_activationType * k2c_hard_sigmoid;
30-
k2c_activationType * k2c_tanh;
31-
k2c_activationType * k2c_sigmoid;
32-
k2c_activationType * k2c_softmax;
33-
k2c_activationType * k2c_softplus;
34-
k2c_activationType * k2c_softsign;
26+
extern k2c_activationType * k2c_linear;
27+
extern k2c_activationType * k2c_exponential;
28+
extern k2c_activationType * k2c_relu;
29+
extern k2c_activationType * k2c_hard_sigmoid;
30+
extern k2c_activationType * k2c_tanh;
31+
extern k2c_activationType * k2c_sigmoid;
32+
extern k2c_activationType * k2c_softmax;
33+
extern k2c_activationType * k2c_softplus;
34+
extern k2c_activationType * k2c_softsign;
3535

3636
// Advanced Activations
3737
void k2c_LeakyReLU(float * x, const size_t size, const float alpha);

0 commit comments

Comments
 (0)