Programa para el testeo de las funciones Fully Connected Layer.Para compilar o código example_fcnn_create.cpp:
Para executar o programa:
Retornando por consola:
NN0: 4 2 16 4 1 L[0] Nin: 2 Nout: 16 FuncAct: 0x7ff9a53afd60 DFuncAct: 0x7ff9a53af610 W: 0.481935823095 0.30495568332493 0.71208725995947 0.18255578735031 0.62182282126594 0.040864302795783 0.41398373963962 0.69598379111662 0.67393649633691 0.63764015288914 0.34711587305512 0.18462246758147 0.60910586202941 0.62715788633896 0.73072934557252 0.32837443814072 0.74043844115941 0.20221277428894 0.9209143570256 0.68475653682126 0.65313033231214 0.25726548221766 0.53244097276239 0.087643628049476 0.26049694244773 0.87738392775756 0.68612492768379 0.093740236057779 0.11127563198622 0.36160090768784 0.57669051577183 0.59321145508122 0.66655659101277 0.28877777526564 0.77576724289719 0.28837941181305 0.32964207852708 0.18975098207116 0.98436320292967 0.0035785743983363 0.82739113542595 0.33147907551913 0.18820104197981 0.43649699698971 0.95863696185808 0.91893038801799 0.76487143513042 0.69907540301749 L[1] Nin: 16 Nout: 4 FuncAct: 0x7ff9a53afd60 DFuncAct: 0x7ff9a53af610 W: 0.12114316184127 0.68578579169036 0.38383193937309 0.77427349461907 0.94305127437369 0.91627291213547 0.86191712266855 0.20354821635575 0.79365683942738 0.54804204988668 0.29728845241353 0.9049324714136 0.90964295757452 0.87397896818536 0.49814392649482 0.57619954812163 0.162756743451 0.27391116892635 0.86457896040034 0.49239882197808 0.46366215099751 0.84894216286435 0.49597739637642 0.2910532859578 0.18042123838347 0.68417843882189 0.72755028341317 0.1390581997759 0.60310882637422 0.49242171807793 0.83813360279339 0.72425198821549 0.17820750976829 0.22196554216648 0.4985254823689 0.12125878367632 0.13823845383629 0.36044260457179 0.32480700003207 0.93189529372933 0.90848465445847 0.6220954524456 0.83682776467727 0.81812761156733 0.49607442016531 0.33497169070643 0.39432715968896 0.65883116361631 0.60888285963278 0.25890611962364 0.15122998512873 0.072545010630295 0.10784828202233 0.64720738197081 0.3635982965881 0.28826952040581 0.33138582032704 0.091148579535609 0.42732772064736 0.93449464670126 0.5835702980792 0.26546132297509 0.65874663445109 0.76177780784749 0.48742686514157 0.15727211681999 0.88303659152381 0.62566531944352 L[2] Nin: 4 Nout: 1 FuncAct: 0x7ff9a53afd60 DFuncAct: 0x7ff9a53af610 W: 0.51771472139178 0.20784359109022 0.55756061270719 0.42619937585024 0.82993904353582
Código example_fcnn_create.cpp: