Go to the source code of this file.
|
#define | ae2f_NEED_CLASS 0 |
#define | ACT(layer_idx, r, x) |
#define | ACT_DERIV(layer_idx, r, x) |
#define | LOSS_DERIV(r, y, y_desired, i, c) |
#define | pgsz sz |
#define | pgsz_sqr (pgsz * pgsz) |
#define | lsz lsz |
#define | llsz (lsz - 1) |
#define | p_layerszlist CAST(__global uint32_t*, glob) |
| lsz * sizeof(uint32_t)
|
#define | p_outstream (CAST(__global ae2f_float_t*, p_layerszlist + lsz)) |
| sizeof(ae2f_float_t) * lsz * pgsz
|
#define | p_inp p_outstream |
#define | p_weight (p_outstream + lsz * pgsz) |
| sizeof(ae2f_float_t) * pgsz_sqr * llsz
|
#define | p_bias (p_weight + pgsz_sqr * llsz) |
| sizeof(ae2f_float_t) * pgsz * llsz
|
#define | p_deltastream (p_bias + llsz * pgsz) |
| sizeof(ae2f_float_t) * pgsz * llsz
|
#define | p_goal (p_deltastream + llsz * pgsz) |
| sizeof(ae2f_float_t) * pgsz
|
#define | _r_inp(lidx) |
#define | _r_out(lidx) |
#define | _r_weight(lidx) |
#define | _r_bias(lidx) |
#define | _r_delta(lidx) |
#define | _r_isz(lidx) |
#define | _r_osz(lidx) |
#define | r_inp _r_inp(lidx) |
#define | r_out _r_out(lidx) |
#define | r_weight _r_weight(lidx) |
#define | r_bias _r_bias(lidx) |
#define | r_delta _r_delta(lidx) |
#define | r_isz _r_isz(lidx) |
#define | r_osz _r_osz(lidx) |
#define | r_inp_then _r_inp(lidx-1) |
#define | r_out_then _r_out(lidx-1) |
#define | r_weight_then _r_weight(lidx-1) |
#define | r_bias_then _r_bias(lidx-1) |
#define | r_delta_then _r_delta(lidx-1) |
#define | r_isz_then _r_isz(lidx-1) |
#define | r_osz_then _r_osz(lidx-1) |
#define | l_inp(O_R) |
#define | l_out(O_R) |
#define | lp_deltastream ((loc) + pgsz * ((lsz))) |
#define | l_delta (lp_deltastream + pgsz * ((lidx) & 1)) |
#define | l_delta_then (lp_deltastream + pgsz * (!((lidx) & 1))) |
#define | ACT_RUN(r, x) |
#define | ACT_DERIV_RUN(r, x) |
#define | ACT_RUN_THEN(r, x) |
#define | ACT_DERIV_RUN_THEN(r, x) |
#define | lsz lr.m_lsz.m_u |
#define | m_weight m_weight.m_f |
#define | m_bias m_bias.m_f |
#define | lsz lr.m_lsz.m_u |
#define | m_weight m_weight.m_f |
#define | m_bias m_bias.m_f |
|
__kernel void | kPredict (__global void *glob, __local ae2f_float_t *loc, const uint32_t lsz) |
| loc ae2f_float_t[Page]: inp ae2f_float_t[Page]: out
|
__kernel void | kPredictStream (__global void *glob, __local ae2f_float_t *loc, const uint32_t lsz) |
| loc ae2f_float_t[Page]: inp ae2f_float_t[Page]: out
|
| ae2f_structdef (union, lrlszel_t) |
const | ae2f_structdef (struct, lrlsz_t) |
__kernel void | kFollow (__global void *glob, __local ae2f_float_t *loc, lrlsz_t lr) |
| loc ae2f_float_t[lsz - 1][Page]: OutStream ae2f_float_t[lsz - 1][Page]: DeltaStream
|
__kernel void | kTrainAuto (__global void *glob, __local ae2f_float_t *loc, lrlsz_t lr) |
| loc ae2f_float_t[lsz - 1][Page]: OutStream ae2f_float_t[lsz - 1][Page]: DeltaStream
|
◆ _r_bias
Value:
#define p_bias
sizeof(ae2f_float_t) * pgsz * llsz
Definition at line 52 of file Mlp.cl.c.
◆ _r_delta
Value:
#define p_deltastream
sizeof(ae2f_float_t) * pgsz * llsz
Definition at line 53 of file Mlp.cl.c.
◆ _r_inp
Value:
#define p_outstream
sizeof(ae2f_float_t) * lsz * pgsz
Definition at line 49 of file Mlp.cl.c.
◆ _r_isz
Value:
#define p_layerszlist
lsz * sizeof(uint32_t)
Definition at line 54 of file Mlp.cl.c.
◆ _r_osz
◆ _r_out
◆ _r_weight
#define _r_weight |
( |
| lidx | ) |
|
Value:
#define p_weight
sizeof(ae2f_float_t) * pgsz_sqr * llsz
Definition at line 51 of file Mlp.cl.c.
◆ ACT
#define ACT |
( |
| layer_idx, |
|
|
| r, |
|
|
| x ) |
◆ ACT_DERIV
#define ACT_DERIV |
( |
| layer_idx, |
|
|
| r, |
|
|
| x ) |
◆ ACT_DERIV_RUN
#define ACT_DERIV_RUN |
( |
| r, |
|
|
| x ) |
Value:
#define ACT_DERIV(layer_idx, r, x)
Definition at line 82 of file Mlp.cl.c.
◆ ACT_DERIV_RUN_THEN
#define ACT_DERIV_RUN_THEN |
( |
| r, |
|
|
| x ) |
◆ ACT_RUN
Value:
#define ACT(layer_idx, r, x)
For every runners
Definition at line 81 of file Mlp.cl.c.
◆ ACT_RUN_THEN
#define ACT_RUN_THEN |
( |
| r, |
|
|
| x ) |
◆ ae2f_NEED_CLASS
#define ae2f_NEED_CLASS 0 |
◆ l_delta
◆ l_delta_then
◆ l_inp
◆ l_out
◆ llsz
count of layer.
Definition at line 28 of file Mlp.cl.c.
◆ LOSS_DERIV
#define LOSS_DERIV |
( |
| r, |
|
|
| y, |
|
|
| y_desired, |
|
|
| i, |
|
|
| c ) |
◆ lp_deltastream
◆ lsz [1/3]
length of p_layerszlist
Definition at line 25 of file Mlp.cl.c.
◆ lsz [2/3]
length of p_layerszlist
Definition at line 25 of file Mlp.cl.c.
◆ lsz [3/3]
length of p_layerszlist
Definition at line 25 of file Mlp.cl.c.
◆ m_bias [1/2]
#define m_bias m_bias.m_f |
◆ m_bias [2/2]
#define m_bias m_bias.m_f |
◆ m_weight [1/2]
#define m_weight m_weight.m_f |
◆ m_weight [2/2]
#define m_weight m_weight.m_f |
◆ p_bias
sizeof(ae2f_float_t) * pgsz * llsz
Definition at line 40 of file Mlp.cl.c.
◆ p_deltastream
sizeof(ae2f_float_t) * pgsz * llsz
Definition at line 43 of file Mlp.cl.c.
◆ p_goal
sizeof(ae2f_float_t) * pgsz
Definition at line 46 of file Mlp.cl.c.
◆ p_inp
◆ p_layerszlist
lsz * sizeof(uint32_t)
Definition at line 31 of file Mlp.cl.c.
◆ p_outstream
sizeof(ae2f_float_t) * lsz * pgsz
Definition at line 33 of file Mlp.cl.c.
◆ p_weight
sizeof(ae2f_float_t) * pgsz_sqr * llsz
Definition at line 37 of file Mlp.cl.c.
◆ pgsz
◆ pgsz_sqr
◆ r_bias
◆ r_bias_then
#define r_bias_then _r_bias(lidx-1) |
◆ r_delta
◆ r_delta_then
◆ r_inp
◆ r_inp_then
#define r_inp_then _r_inp(lidx-1) |
◆ r_isz
◆ r_isz_then
#define r_isz_then _r_isz(lidx-1) |
◆ r_osz
◆ r_osz_then
#define r_osz_then _r_osz(lidx-1) |
◆ r_out
◆ r_out_then
#define r_out_then _r_out(lidx-1) |
◆ r_weight
◆ r_weight_then
◆ STATIC_ASSERT_LRLSZ_SZ
typedef char STATIC_ASSERT_LRLSZ_SZ[sizeof(lrlsz_t)== sizeof(lrlszel_t) *3 ? 1 :-1] |
◆ STATIC_ASSERT_LRLSZEL_SZ
◆ ae2f_structdef() [1/2]
const ae2f_structdef |
( |
struct | , |
|
|
lrlsz_t | ) |
◆ ae2f_structdef() [2/2]
ae2f_structdef |
( |
union | , |
|
|
lrlszel_t | ) |
◆ kFollow()
loc ae2f_float_t[lsz - 1][Page]: OutStream ae2f_float_t[lsz - 1][Page]: DeltaStream
ASSERT
Needs to be procedural
Needs to be procedural
Definition at line 166 of file Mlp.cl.c.
◆ kPredict()
◆ kPredictStream()
◆ kTrainAuto()
loc ae2f_float_t[lsz - 1][Page]: OutStream ae2f_float_t[lsz - 1][Page]: DeltaStream
ASSERT
lidx == llsz - 1
lidx == llsz
lidx == llsz - 1
Needs to be procedural
lidx == 0
Definition at line 290 of file Mlp.cl.c.