ae2f_docs
Slp.cl.c File Reference
#include "./Slp.auto.h"

Go to the source code of this file.

Macros

#define ae2f_NEED_CLASS   0
#define ACT(r, x)
#define ACT_DERIV(r, x)
#define LOSS_DERIV(r, y, y_desired, i, c)
#define p_weight   glob
#define p_bias   (glob + (osz * isz))
#define p_inp   ((p_bias) + (osz))
#define p_out   ((p_inp) + isz)
#define p_delta   ((p_out) + osz)
#define p_goal   ((p_delta) + osz)

Functions

const ae2f_structdef (struct, lr_t)
__kernel void kPredict (__global ae2f_float_t *glob, const uint32_t unused)
 get_global_id(0) : oidx

__kernel void kTrain (lr_t lr, __global ae2f_float_t *glob, __local ae2f_float_t *loc)
 get_global_id(0) : oidx
get_local_id(0) : iidx

__kernel void kFit (lr_t lr, __global ae2f_float_t *glob)
 get_global_id(0) : oidx
get_local_id(0) : iidx

__kernel void kFollow (lr_t lr, __global ae2f_float_t *glob)
 get_global_id(0): oidx get_local_id(0): iidx

Macro Definition Documentation

◆ ACT

#define ACT ( r,
x )

Definition at line 10 of file Slp.cl.c.

◆ ACT_DERIV

#define ACT_DERIV ( r,
x )

Definition at line 14 of file Slp.cl.c.

◆ ae2f_NEED_CLASS

#define ae2f_NEED_CLASS   0

Definition at line 1 of file Slp.cl.c.

◆ LOSS_DERIV

#define LOSS_DERIV ( r,
y,
y_desired,
i,
c )

Definition at line 18 of file Slp.cl.c.

◆ p_bias

#define p_bias   (glob + (osz * isz))

Definition at line 23 of file Slp.cl.c.

◆ p_delta

#define p_delta   ((p_out) + osz)

Definition at line 26 of file Slp.cl.c.

◆ p_goal

#define p_goal   ((p_delta) + osz)

Definition at line 27 of file Slp.cl.c.

◆ p_inp

#define p_inp   ((p_bias) + (osz))

Definition at line 24 of file Slp.cl.c.

◆ p_out

#define p_out   ((p_inp) + isz)

Definition at line 25 of file Slp.cl.c.

◆ p_weight

#define p_weight   glob

Magic numbers

Definition at line 22 of file Slp.cl.c.

Function Documentation

◆ ae2f_structdef()

const ae2f_structdef ( struct ,
lr_t  )

Definition at line 29 of file Slp.cl.c.

◆ kFit()

__kernel void kFit ( lr_t lr,
__global ae2f_float_t * glob )

get_global_id(0) : oidx
get_local_id(0) : iidx

Global:
ae2f_float_t[Out][In] : Weights
, ae2f_float_t[Out] : Bias
, ae2f_float_t[Inp]
, ae2f_float_t[Out]
, ae2f_float_t[Out] : Delta
, ae2f_float_t[Out] : Goal

out

out_desired

retdelta

delta

r_bias

delta

inp

delta

weight

Definition at line 139 of file Slp.cl.c.

◆ kFollow()

__kernel void kFollow ( lr_t lr,
__global ae2f_float_t * glob )

get_global_id(0): oidx get_local_id(0): iidx

Global:
ae2f_float_t[Out][In] : Weights
, ae2f_float_t[Out] : Bias
, ae2f_float_t[Inp]
, ae2f_float_t[Out] : Delta

inp

delta

weight

r_bias

delta

Definition at line 194 of file Slp.cl.c.

◆ kPredict()

__kernel void kPredict ( __global ae2f_float_t * glob,
const uint32_t unused )

get_global_id(0) : oidx

Global:
, ae2f_float_t[Out][Inp] : Weight
, ae2f_float_t[Out] : Bias
, ae2f_float_t[Inp]
, ae2f_float_t[Out]

Definition at line 47 of file Slp.cl.c.

◆ kTrain()

__kernel void kTrain ( lr_t lr,
__global ae2f_float_t * glob,
__local ae2f_float_t * loc )

get_global_id(0) : oidx
get_local_id(0) : iidx

Global:
ae2f_float_t[Out][Inp] : Weights
, ae2f_float_t[Out] : Bias
, ae2f_float_t[Inp]
, ae2f_float_t[Out]
, ae2f_float_t[Out] : Delta
, ae2f_float_t[Out] : Goal
Local:
ae2f_float_t[Out]

out

out_desired

delta

r_bias

delta

inp

delta

weight

Definition at line 76 of file Slp.cl.c.