#include <ae2f/Ann/Util.h>
#include <assert.h>
#include <stdlib.h>
#include <ae2f/Macro.h>
#include <ae2f/Ann/Slp.h>
#include <ae2f/Ann/Mlp.h>
Go to the source code of this file.
|
#define | OPER_NEG |
#define | OPER_NONE |
#define | ae2f_Ann_Mlp_c |
#define | __ae2f_AnnMlpDel_C(...) |
#define | __ae2f_AnnMlpMk_C(...) |
#define | __ae2f_AnnMlpMk_imp(...) |
#define | __ae2f_AnnMlpSz_imp(...) |
#define | __ae2f_AnnMlpInitWithOutSz_imp(...) |
#define | __ae2f_AnnMlpInit_imp(...) |
#define | __ae2f_AnnMlpPredictPrimal(...) |
#define | __ae2f_AnnMlpPredictStream_imp(...) |
#define | __ae2f_AnnMlpPredictStream_C(reterr, mlp, inp, out) |
#define | __ae2f_AnnMlpPredict_imp(...) |
#define | __ae2f_AnnMlpPredict_C(...) |
#define | __ae2f_AnnMlpFollowStream_imp(...) |
#define | __ae2f_AnnMlpFollow_imp(...) |
#define | __ae2f_AnnMlpFollowPrimal(...) |
#define | __ae2f_AnnMlpFollow_C(...) |
#define | __ae2f_AnnMlpFollowStream_C(...) |
#define | __ae2f_AnnMlpTrainPrimal(...) |
#define | __ae2f_AnnMlpTrainAutoPrimal(...) |
#define | __ae2f_AnnMlpTrain_C(reterr, mlp, inp, out, out_desired) |
#define | __ae2f_AnnMlpTrainStream_C(reterr, mlp, inp, out, out_desired) |
#define | __ae2f_AnnMlpTrain_imp(...) |
#define | __ae2f_AnnMlpTrainStream_imp(...) |
#define | __ae2f_AnnMlpTrainAuto_C(reterr, mlp, inp, out_desired) |
#define | __ae2f_AnnMlpTrainAutoStream_C(reterr, mlp, inp, out_desired) |
◆ __ae2f_AnnMlpDel_C
#define __ae2f_AnnMlpDel_C |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
Definition at line 77 of file Mlp.def.cc.
◆ __ae2f_AnnMlpFollow_C
#define __ae2f_AnnMlpFollow_C |
( |
| ... | ) |
|
Value:
#define __ae2f_AnnMlpFollowPrimal(...)
◆ __ae2f_AnnMlpFollow_imp
#define __ae2f_AnnMlpFollow_imp |
( |
| ... | ) |
|
Value:
#define __ae2f_AnnMlpFollowPrimal_imp(OPER_NEG, OPER_NONE, v_follow, mlp, inp, delta, lenv, outstream, deltacache, weight, bias, learningrate, learningrate_bias, actderiv)
◆ __ae2f_AnnMlpFollowPrimal
#define __ae2f_AnnMlpFollowPrimal |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
◆ __ae2f_AnnMlpFollowStream_C
#define __ae2f_AnnMlpFollowStream_C |
( |
| ... | ) |
|
◆ __ae2f_AnnMlpFollowStream_imp
#define __ae2f_AnnMlpFollowStream_imp |
( |
| ... | ) |
|
Value:
#define ae2f_NONE
Literally nothing.
◆ __ae2f_AnnMlpInit_imp
#define __ae2f_AnnMlpInit_imp |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
Definition at line 307 of file Mlp.def.cc.
◆ __ae2f_AnnMlpInitWithOutSz_imp
#define __ae2f_AnnMlpInitWithOutSz_imp |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
Definition at line 304 of file Mlp.def.cc.
◆ __ae2f_AnnMlpMk_C
#define __ae2f_AnnMlpMk_C |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
Definition at line 80 of file Mlp.def.cc.
◆ __ae2f_AnnMlpMk_imp
#define __ae2f_AnnMlpMk_imp |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
Definition at line 298 of file Mlp.def.cc.
◆ __ae2f_AnnMlpPredict_C
#define __ae2f_AnnMlpPredict_C |
( |
| ... | ) |
|
Value:
#define __ae2f_AnnMlpPredictPrimal(...)
Definition at line 478 of file Mlp.def.cc.
◆ __ae2f_AnnMlpPredict_imp
#define __ae2f_AnnMlpPredict_imp |
( |
| ... | ) |
|
Value:
#define __ae2f_AnnMlpPredictPrimal_imp(OPER_NEG, OPER_NONE, v_predict, mlp, inp, out, sz, weight, bias, outcache, act_opt)
layer must be more than 2
Definition at line 475 of file Mlp.def.cc.
◆ __ae2f_AnnMlpPredictPrimal
#define __ae2f_AnnMlpPredictPrimal |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
Definition at line 463 of file Mlp.def.cc.
◆ __ae2f_AnnMlpPredictStream_C
Value:
const ae2f_AnnMlp_t const ae2f_float_t *const inp
const ae2f_AnnMlp_t const ae2f_float_t *const ae2f_float_t *const out
Definition at line 472 of file Mlp.def.cc.
◆ __ae2f_AnnMlpPredictStream_imp
#define __ae2f_AnnMlpPredictStream_imp |
( |
| ... | ) |
|
◆ __ae2f_AnnMlpSz_imp
#define __ae2f_AnnMlpSz_imp |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
Definition at line 301 of file Mlp.def.cc.
◆ __ae2f_AnnMlpTrain_C
Value:
#define __ae2f_AnnMlpTrainPrimal(...)
◆ __ae2f_AnnMlpTrain_imp
#define __ae2f_AnnMlpTrain_imp |
( |
| ... | ) |
|
Value:
#define __ae2f_AnnMlpTrainPrimal_imp(OPER_NEG, OPER_NONE, v_train, mlp, inp, out, out_desired, lenv, outstream, deltacache, weight, bias, learningrate, learningrate_bias, act, actderiv, lossderiv)
◆ __ae2f_AnnMlpTrainAuto_C
#define __ae2f_AnnMlpTrainAuto_C |
( |
| reterr, |
|
|
| mlp, |
|
|
| inp, |
|
|
| out_desired ) |
Value:
#define __ae2f_AnnMlpTrainAutoPrimal(...)
◆ __ae2f_AnnMlpTrainAutoPrimal
#define __ae2f_AnnMlpTrainAutoPrimal |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
◆ __ae2f_AnnMlpTrainAutoStream_C
#define __ae2f_AnnMlpTrainAutoStream_C |
( |
| reterr, |
|
|
| mlp, |
|
|
| inp, |
|
|
| out_desired ) |
◆ __ae2f_AnnMlpTrainPrimal
#define __ae2f_AnnMlpTrainPrimal |
( |
| ... | ) |
|
Value: typedef char NO_ae2f_NEED_CLASS[-1]
◆ __ae2f_AnnMlpTrainStream_C
◆ __ae2f_AnnMlpTrainStream_imp
#define __ae2f_AnnMlpTrainStream_imp |
( |
| ... | ) |
|
◆ ae2f_Ann_Mlp_c
◆ OPER_NEG
◆ OPER_NONE
◆ ae2f_MAC() [1/2]
◆ ae2f_MAC() [2/2]
layer must be more than 2
◆ assert()
◆ for() [1/2]
◆ for() [2/2]
◆ if() [1/2]
◆ if() [2/2]
◆ act_opt
Initial value:{
assert((v_predict).m_k==(mlp).m_depth - 2)
Definition at line 325 of file Mlp.def.cc.
◆ actderiv_then
◆ bias
◆ delta
◆ deltaseed
◆ else
Initial value:{
(v_predict)
, (v_predict)
,
)
const ae2f_AnnMlp_t const ae2f_float_t *const ae2f_float_t *const const size_t *const const ae2f_float_t *const const ae2f_float_t *const bias
const ae2f_AnnMlp_t const ae2f_float_t *const ae2f_float_t *const const size_t *const const ae2f_float_t *const const ae2f_float_t *const ae2f_float_t *const outcache
const ae2f_AnnMlp_t const ae2f_float_t *const ae2f_float_t *const const size_t *const const ae2f_float_t *const weight
#define __ae2f_AnnSlpPredict_imp(v_predict, _this, prm_in, out, weight, bias, act_opt)
Definition at line 346 of file Mlp.def.cc.
◆ iidx
◆ inp
ae2fVK_Spvc *restrict const const glslang_input_t *const restrict inp |
Initial value:{
ae2fVK_Spvc *restrict const ret
Definition at line 317 of file Mlp.def.cc.
◆ m_depth
v_predict m_depth = (mlp).m_depth - 1 |
◆ m_inc
v_predict m_inc = (sz)[0] |
◆ m_outc
v_predict m_outc = (sz)[1] |
◆ m_outc_max
◆ mlp
◆ out
◆ outcache
◆ retdelta_then
◆ slp
◆ slp_then
size_t const ae2f_AnnSlp_t slp_then |
◆ sz
◆ v_send
◆ weight