AIfES 2  2.0.0
ailayer_softsign Struct Reference

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

Detailed Description

General Softsign layer struct.

Field Documentation

◆ d_softsign

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} \]

Parameters
xN-dimensional tensor (input)
resultN-dimensional tensor (output)

◆ multiply

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 \]

◆ softsign

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|} \]

Parameters
xN-dimensional tensor (input)
resultN-dimensional tensor (output)

The documentation for this struct was generated from the following file: