AIfES 2
2.0.0
|
General Softsign layer struct. More...
#include <ailayer_softsign.h>
Data Fields | |
ailayer_t | base |
Inherited field members from general ailayer struct. | |
Math functions | |
Required data type specific math functions | |
void(* | softsign )(const aitensor_t *x, aitensor_t *result) |
Required math function: Softsign. More... | |
void(* | d_softsign )(const aitensor_t *softsign_x, aitensor_t *result) |
Required math function: Derivative of softsign. More... | |
void(* | multiply )(const aitensor_t *a, const aitensor_t *b, aitensor_t *result) |
Required math function: Element wise tensor multiplication. More... | |
General Softsign layer struct.
void(* d_softsign) (const aitensor_t *softsign_x, aitensor_t *result) |
Required math function: Derivative of softsign.
Requires a math function that calculates the element wise softsign derivative of a tensor:
\[ result_{i} = \frac {x_i} {(1 + |x_i|)^2} \]
x | N-dimensional tensor (input) |
result | N-dimensional tensor (output) |
void(* multiply) (const aitensor_t *a, const aitensor_t *b, aitensor_t *result) |
Required math function: Element wise tensor multiplication.
Requires a math function that multiplies two tensors element wise:
\[ result = a \circ b \]
void(* softsign) (const aitensor_t *x, aitensor_t *result) |
Required math function: Softsign.
Requires a math function that calculates the element wise softsign of a tensor:
\[ result_{i} = \frac {x_i} {1 + |x_i|} \]
x | N-dimensional tensor (input) |
result | N-dimensional tensor (output) |