Skip to content

Commit

Permalink
Merge pull request #7 from roboticarm2000/patch-1
Browse files Browse the repository at this point in the history
declare k2c_activationType* as extern
  • Loading branch information
f0uriest committed Nov 17, 2021
2 parents 653745a + 3e2c288 commit 78158e3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions include/k2c_include.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ void k2c_softmax_func(float * x, const size_t size);
void k2c_softplus_func(float * x, const size_t size);
void k2c_softsign_func(float * x, const size_t size);
typedef void k2c_activationType(float * x, const size_t size);
k2c_activationType * k2c_linear;
k2c_activationType * k2c_exponential;
k2c_activationType * k2c_relu;
k2c_activationType * k2c_hard_sigmoid;
k2c_activationType * k2c_tanh;
k2c_activationType * k2c_sigmoid;
k2c_activationType * k2c_softmax;
k2c_activationType * k2c_softplus;
k2c_activationType * k2c_softsign;
extern k2c_activationType * k2c_linear;
extern k2c_activationType * k2c_exponential;
extern k2c_activationType * k2c_relu;
extern k2c_activationType * k2c_hard_sigmoid;
extern k2c_activationType * k2c_tanh;
extern k2c_activationType * k2c_sigmoid;
extern k2c_activationType * k2c_softmax;
extern k2c_activationType * k2c_softplus;
extern k2c_activationType * k2c_softsign;

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

0 comments on commit 78158e3

Please sign in to comment.