Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张一极
Edge Computing Engine
提交
53f55a9b
Edge Computing Engine
项目概览
张一极
/
Edge Computing Engine
通知
61
Star
8
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Edge Computing Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
53f55a9b
编写于
1月 15, 2020
作者:
sahduashufa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
new
上级
ed9514de
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
2136 addition
and
29 deletion
+2136
-29
.nerual_test.cpp.swp
.nerual_test.cpp.swp
+0
-0
a.csv
a.csv
+2079
-0
grad_edge/.matrix_grad.h.swp
grad_edge/.matrix_grad.h.swp
+0
-0
grad_edge/matrix_grad.h
grad_edge/matrix_grad.h
+19
-19
ma
ma
+0
-0
main.cpp
main.cpp
+0
-5
nerual_test.cpp
nerual_test.cpp
+38
-5
未找到文件。
.nerual_test.cpp.swp
浏览文件 @
53f55a9b
无法预览此类型文件
a.csv
0 → 100644
浏览文件 @
53f55a9b
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0,
0,
./
0.000251941,
0.00077305,
./
0.00157362,
0.00330127,
./
0.00200445,
0.00344932,
./
0.00242646,
0.000847761,
./
-0.00501432,
0.000643556,
./
0.000654859,
0.000799507,
./
6.86094e-05,
-0.00440036,
./
-0.00968432,
-0.0116491,
./
-0.00536664,
-0.00148325,
./
-0.0028275,
0.000580462,
./
-0.00365953,
0.000564924,
./
-0.00422729,
0.00203569,
./
0.000170027,
0.000119306,
./
0.00898632,
-0.00417431,
./
0.00727786,
0.000437048,
./
0.00311386,
-0.00521092,
./
-0.000358663,
0.000175769,
./
0.000645589,
-0.00426074,
./
0.000333293,
-0.000563534,
./
-0.00189326,
-0.00068088,
./
0.00118251,
-0.00127487,
./
-0.00313013,
0.00882217,
./
-0.00490997,
0.00610118,
./
0.0113919,
0.0106104,
./
0.00210933,
0.00146225,
./
0.00250713,
0.00193331,
./
-0.0112754,
-0.00570475,
./
0.000343728,
-0.0024469,
./
0.000113812,
-0.00072579,
./
-0.0254114,
0.0057977,
./
0.0029934,
0.00327672,
./
0.00150721,
0.0013476,
./
0.00135223,
-0.000168747,
./
0.000200963,
0.000934241,
./
0.00575169,
-0.00312451,
./
-0.00630991,
-0.00366735,
./
-0.00388997,
0.00412703,
./
0.00317011,
0.000161785,
./
0.00159475,
0.00431386,
./
0.00252487,
0.000120358,
./
0.0100121,
0.0082258,
./
0.0103855,
0.00723464,
./
-0.00146898,
-0.000991123,
./
0.00421224,
0.000804431,
./
0.00242947,
-0.00070228,
./
-0.000185232,
-0.017812,
./
0.0117925,
-0.00234344,
./
0.00277804,
-0.0037375,
./
0.000997452,
0.00534706,
./
0.00312071,
-0.00113833,
./
-0.00092958,
-0.00112345,
./
-0.00219834,
-0.00379822,
./
0.000146309,
0.000642151,
./
-0.000918671,
-0.00352159,
./
-0.00399982,
0.000921859,
./
-0.00321996,
-0.00195599,
./
0.0238226,
-0.00678112,
./
0.00227948,
-0.0025326,
./
-0.00238107,
-0.00593439,
./
-0.00238555,
-0.00141785,
./
0.000922456,
0.000161074,
./
-0.00129783,
-0.00514507,
./
-0.0013547,
-0.00185021,
./
0.0077375,
-0.000138654,
./
0.0019244,
0.00908111,
./
-0.00222863,
0.00170677,
./
-0.00450432,
0.00177237,
./
0.00037578,
0.000282072,
./
0.00343459,
-0.000774212,
./
0.00242967,
0.00116035,
./
-0.00150311,
0.00057923,
./
-0.00507873,
0.002466,
./
-0.00274581,
-0.00164128,
./
0.00242044,
0.00196271,
./
0.000161163,
-0.00180505,
./
0.00918529,
-0.00634373,
./
-0.000998764,
-0.000758588,
./
0.00850386,
0.001482,
./
0.00336878,
-0.000403814,
./
-0.000752257,
-0.000604075,
./
-0.00430049,
-0.00313422,
./
0.00016901,
-0.00382558,
./
0.000702422,
0.000564241,
./
-0.0148242,
0.00084799,
./
0.024947,
-0.00223695,
./
-0.00237024,
-0.00225248,
./
-0.000120416,
0.000883383,
./
9.74529e-05,
0.000604422,
./
0.00885592,
-0.00426839,
./
-0.00282017,
0.00163915,
./
0.000643414,
0.00602473,
./
0.0183666,
0.0113273,
./
0.00406437,
0.000509551,
./
0.0025873,
0.00361284,
./
0.0111578,
-0.000710667,
./
-0.000126146,
-0.000686229,
./
-2.38283e-06,
0.000452385,
./
-0.000362186,
0.00114648,
./
-0.00483383,
-0.00423976,
./
0.000251941,
0.00077305,
./
0.00157362,
0.00330127,
./
0.00200445,
0.00344932,
./
0.00242646,
0.000847761,
./
-0.00501432,
0.000643556,
./
0.000654859,
0.000799507,
./
6.86094e-05,
-0.00440036,
./
-0.00968432,
-0.0116491,
./
-0.00536664,
-0.00148325,
./
-0.0028275,
0.000580462,
./
-0.00365953,
0.000564924,
./
-0.00422729,
0.00203569,
./
0.000170027,
0.000119306,
./
0.00898632,
-0.00417431,
./
0.00727786,
0.000437048,
./
0.00311386,
-0.00521092,
./
-0.000358663,
0.000175769,
./
0.000645589,
-0.00426074,
./
0.000333293,
-0.000563534,
./
-0.00189326,
-0.00068088,
./
0.00118251,
-0.00127487,
./
-0.00313013,
0.00882217,
./
-0.00490997,
0.00610118,
./
0.0113919,
0.0106104,
./
0.00210933,
0.00146225,
./
0.00250713,
0.00193331,
./
-0.0112754,
-0.00570475,
./
0.000343728,
-0.0024469,
./
0.000113812,
-0.00072579,
./
-0.0254114,
0.0057977,
./
0.0029934,
0.00327672,
./
0.00150721,
0.0013476,
./
0.00135223,
-0.000168747,
./
0.000200963,
0.000934241,
./
0.00575169,
-0.00312451,
./
-0.00630991,
-0.00366735,
./
-0.00388997,
0.00412703,
./
0.00317011,
0.000161785,
./
0.00159475,
0.00431386,
./
0.00252487,
0.000120358,
./
0.0100121,
0.0082258,
./
0.0103855,
0.00723464,
./
-0.00146898,
-0.000991123,
./
0.00421224,
0.000804431,
./
0.00242947,
-0.00070228,
./
-0.000185232,
-0.017812,
./
0.0117925,
-0.00234344,
./
0.00277804,
-0.0037375,
./
0.000997452,
0.00534706,
./
0.00312071,
-0.00113833,
./
-0.00092958,
-0.00112345,
./
-0.00219834,
-0.00379822,
./
0.000146309,
0.000642151,
./
-0.000918671,
-0.00352159,
./
-0.00399982,
0.000921859,
./
-0.00321996,
-0.00195599,
./
0.0238226,
-0.00678112,
./
0.00227948,
-0.0025326,
./
-0.00238107,
-0.00593439,
./
-0.00238555,
-0.00141785,
./
0.000922456,
0.000161074,
./
-0.00129783,
-0.00514507,
./
-0.0013547,
-0.00185021,
./
0.0077375,
-0.000138654,
./
0.0019244,
0.00908111,
./
-0.00222863,
0.00170677,
./
-0.00450432,
0.00177237,
./
0.00037578,
0.000282072,
./
0.00343459,
-0.000774212,
./
0.00242967,
0.00116035,
./
-0.00150311,
0.00057923,
./
-0.00507873,
0.002466,
./
-0.00274581,
-0.00164128,
./
0.00242044,
0.00196271,
./
0.000161163,
-0.00180505,
./
0.00918529,
-0.00634373,
./
-0.000998764,
-0.000758588,
./
0.00850386,
0.001482,
./
0.00336878,
-0.000403814,
./
-0.000752257,
-0.000604075,
./
-0.00430049,
-0.00313422,
./
0.00016901,
-0.00382558,
./
0.000702422,
0.000564241,
./
-0.0148242,
0.00084799,
./
0.024947,
-0.00223695,
./
-0.00237024,
-0.00225248,
./
-0.000120416,
0.000883383,
./
9.74529e-05,
0.000604422,
./
0.00885592,
-0.00426839,
./
-0.00282017,
0.00163915,
./
0.000643414,
0.00602473,
./
0.0183666,
0.0113273,
./
0.00406437,
0.000509551,
./
0.0025873,
0.00361284,
./
0.0111578,
-0.000710667,
./
-0.000126146,
-0.000686229,
./
-2.38283e-06,
0.000452385,
./
-0.000362186,
0.00114648,
./
-0.00483383,
-0.00423976,
./
0.000251941,
0.00077305,
./
0.00157362,
0.00330127,
./
0.00200445,
0.00344932,
./
0.00242646,
0.000847761,
./
-0.00501432,
0.000643556,
./
0.000654859,
0.000799507,
./
6.86094e-05,
-0.00440036,
./
-0.00968432,
-0.0116491,
./
-0.00536664,
-0.00148325,
./
-0.0028275,
0.000580462,
./
-0.00365953,
0.000564924,
./
-0.00422729,
0.00203569,
./
0.000170027,
0.000119306,
./
0.00898632,
-0.00417431,
./
0.00727786,
0.000437048,
./
0.00311386,
-0.00521092,
./
-0.000358663,
0.000175769,
./
0.000645589,
-0.00426074,
./
0.000333293,
-0.000563534,
./
-0.00189326,
-0.00068088,
./
0.00118251,
-0.00127487,
./
-0.00313013,
0.00882217,
./
-0.00490997,
0.00610118,
./
0.0113919,
0.0106104,
./
0.00210933,
0.00146225,
./
0.00250713,
0.00193331,
./
-0.0112754,
-0.00570475,
./
0.000343728,
-0.0024469,
./
0.000113812,
-0.00072579,
./
-0.0254114,
0.0057977,
./
0.0029934,
0.00327672,
./
0.00150721,
0.0013476,
./
0.00135223,
-0.000168747,
./
0.000200963,
0.000934241,
./
0.00575169,
-0.00312451,
./
-0.00630991,
-0.00366735,
./
-0.00388997,
0.00412703,
./
0.00317011,
0.000161785,
./
0.00159475,
0.00431386,
./
0.00252487,
0.000120358,
./
0.0100121,
0.0082258,
./
0.0103855,
0.00723464,
./
-0.00146898,
-0.000991123,
./
0.00421224,
0.000804431,
./
0.00242947,
-0.00070228,
./
-0.000185232,
-0.017812,
./
0.0117925,
-0.00234344,
./
0.00277804,
-0.0037375,
./
0.000997452,
0.00534706,
./
0.00312071,
-0.00113833,
./
-0.00092958,
-0.00112345,
./
-0.00219834,
-0.00379822,
./
0.000146309,
0.000642151,
./
-0.000918671,
-0.00352159,
./
-0.00399982,
0.000921859,
./
-0.00321996,
-0.00195599,
./
0.0238226,
-0.00678112,
./
0.00227948,
-0.0025326,
./
-0.00238107,
-0.00593439,
./
-0.00238555,
-0.00141785,
./
0.000922456,
0.000161074,
./
-0.00129783,
-0.00514507,
./
-0.0013547,
-0.00185021,
./
0.0077375,
-0.000138654,
./
0.0019244,
0.00908111,
./
-0.00222863,
0.00170677,
./
-0.00450432,
0.00177237,
./
0.00037578,
0.000282072,
./
0.00343459,
-0.000774212,
./
0.00242967,
0.00116035,
./
-0.00150311,
0.00057923,
./
-0.00507873,
0.002466,
./
-0.00274581,
-0.00164128,
./
0.00242044,
0.00196271,
./
0.000161163,
-0.00180505,
./
0.00918529,
-0.00634373,
./
-0.000998764,
-0.000758588,
./
0.00850386,
0.001482,
./
0.00336878,
-0.000403814,
./
-0.000752257,
-0.000604075,
./
-0.00430049,
-0.00313422,
./
0.00016901,
-0.00382558,
./
0.000702422,
0.000564241,
./
-0.0148242,
0.00084799,
./
0.024947,
-0.00223695,
./
-0.00237024,
-0.00225248,
./
-0.000120416,
0.000883383,
./
9.74529e-05,
0.000604422,
./
0.00885592,
-0.00426839,
./
-0.00282017,
0.00163915,
./
0.000643414,
0.00602473,
./
0.0183666,
0.0113273,
./
0.00406437,
0.000509551,
./
0.0025873,
0.00361284,
./
0.0111578,
-0.000710667,
./
-0.000126146,
-0.000686229,
./
-2.38283e-06,
0.000452385,
./
-0.000362186,
0.00114648,
./
-0.00483383,
-0.00423976,
./
0.000251941,
0.00077305,
./
0.00157362,
0.00330127,
./
0.00200445,
0.00344932,
./
0.00242646,
0.000847761,
./
-0.00501432,
0.000643556,
./
0.000654859,
0.000799507,
./
6.86094e-05,
-0.00440036,
./
-0.00968432,
-0.0116491,
./
-0.00536664,
-0.00148325,
./
-0.0028275,
0.000580462,
./
-0.00365953,
0.000564924,
./
-0.00422729,
0.00203569,
./
0.000170027,
0.000119306,
./
0.00898632,
-0.00417431,
./
0.00727786,
0.000437048,
./
0.00311386,
-0.00521092,
./
-0.000358663,
0.000175769,
./
0.000645589,
-0.00426074,
./
0.000333293,
-0.000563534,
./
-0.00189326,
-0.00068088,
./
0.00118251,
-0.00127487,
./
-0.00313013,
0.00882217,
./
-0.00490997,
0.00610118,
./
0.0113919,
0.0106104,
./
0.00210933,
0.00146225,
./
0.00250713,
0.00193331,
./
-0.0112754,
-0.00570475,
./
0.000343728,
-0.0024469,
./
0.000113812,
-0.00072579,
./
-0.0254114,
0.0057977,
./
0.0029934,
0.00327672,
./
0.00150721,
0.0013476,
./
0.00135223,
-0.000168747,
./
0.000200963,
0.000934241,
./
0.00575169,
-0.00312451,
./
-0.00630991,
-0.00366735,
./
-0.00388997,
0.00412703,
./
0.00317011,
0.000161785,
./
0.00159475,
0.00431386,
./
0.00252487,
0.000120358,
./
0.0100121,
0.0082258,
./
0.0103855,
0.00723464,
./
-0.00146898,
-0.000991123,
./
0.00421224,
0.000804431,
./
0.00242947,
-0.00070228,
./
-0.000185232,
-0.017812,
./
0.0117925,
-0.00234344,
./
0.00277804,
-0.0037375,
./
0.000997452,
0.00534706,
./
0.00312071,
-0.00113833,
./
-0.00092958,
-0.00112345,
./
-0.00219834,
-0.00379822,
./
0.000146309,
0.000642151,
./
-0.000918671,
-0.00352159,
./
-0.00399982,
0.000921859,
./
-0.00321996,
-0.00195599,
./
0.0238226,
-0.00678112,
./
0.00227948,
-0.0025326,
./
-0.00238107,
-0.00593439,
./
-0.00238555,
-0.00141785,
./
0.000922456,
0.000161074,
./
-0.00129783,
-0.00514507,
./
-0.0013547,
-0.00185021,
./
0.0077375,
-0.000138654,
./
0.0019244,
0.00908111,
./
-0.00222863,
0.00170677,
./
-0.00450432,
0.00177237,
./
0.00037578,
0.000282072,
./
0.00343459,
-0.000774212,
./
0.00242967,
0.00116035,
./
-0.00150311,
0.00057923,
./
-0.00507873,
0.002466,
./
-0.00274581,
-0.00164128,
./
0.00242044,
0.00196271,
./
0.000161163,
-0.00180505,
./
0.00918529,
-0.00634373,
./
-0.000998764,
-0.000758588,
./
0.00850386,
0.001482,
./
0.00336878,
-0.000403814,
./
-0.000752257,
-0.000604075,
./
-0.00430049,
-0.00313422,
./
0.00016901,
-0.00382558,
./
0.000702422,
0.000564241,
./
-0.0148242,
0.00084799,
./
0.024947,
-0.00223695,
./
-0.00237024,
-0.00225248,
./
-0.000120416,
0.000883383,
./
9.74529e-05,
0.000604422,
./
0.00885592,
-0.00426839,
./
-0.00282017,
0.00163915,
./
0.000643414,
0.00602473,
./
0.0183666,
0.0113273,
./
0.00406437,
0.000509551,
./
0.0025873,
0.00361284,
./
0.0111578,
-0.000710667,
./
-0.000126146,
-0.000686229,
./
-2.38283e-06,
0.000452385,
./
-0.000362186,
0.00114648,
./
-0.00483383,
-0.00423976,
./
0.000251941,
0.00077305,
./
0.00157362,
0.00330127,
./
0.00200445,
0.00344932,
./
0.00242646,
0.000847761,
./
-0.00501432,
0.000643556,
./
0.000654859,
0.000799507,
./
6.86094e-05,
-0.00440036,
./
-0.00968432,
-0.0116491,
./
-0.00536664,
-0.00148325,
./
-0.0028275,
0.000580462,
./
-0.00365953,
0.000564924,
./
-0.00422729,
0.00203569,
./
0.000170027,
0.000119306,
./
0.00898632,
-0.00417431,
./
0.00727786,
0.000437048,
./
0.00311386,
-0.00521092,
./
-0.000358663,
0.000175769,
./
0.000645589,
-0.00426074,
./
0.000333293,
-0.000563534,
./
-0.00189326,
-0.00068088,
./
0.00118251,
-0.00127487,
./
-0.00313013,
0.00882217,
./
-0.00490997,
0.00610118,
./
0.0113919,
0.0106104,
./
0.00210933,
0.00146225,
./
0.00250713,
0.00193331,
./
-0.0112754,
-0.00570475,
./
0.000343728,
-0.0024469,
./
0.000113812,
-0.00072579,
./
-0.0254114,
0.0057977,
./
0.0029934,
0.00327672,
./
0.00150721,
0.0013476,
./
0.00135223,
-0.000168747,
./
0.000200963,
0.000934241,
./
0.00575169,
-0.00312451,
./
-0.00630991,
-0.00366735,
./
-0.00388997,
0.00412703,
./
0.00317011,
0.000161785,
./
0.00159475,
0.00431386,
./
0.00252487,
0.000120358,
./
0.0100121,
0.0082258,
./
0.0103855,
0.00723464,
./
-0.00146898,
-0.000991123,
./
0.00421224,
0.000804431,
./
0.00242947,
-0.00070228,
./
-0.000185232,
-0.017812,
./
0.0117925,
-0.00234344,
./
0.00277804,
-0.0037375,
./
0.000997452,
0.00534706,
./
0.00312071,
-0.00113833,
./
-0.00092958,
-0.00112345,
./
-0.00219834,
-0.00379822,
./
0.000146309,
0.000642151,
./
-0.000918671,
-0.00352159,
./
-0.00399982,
0.000921859,
./
-0.00321996,
-0.00195599,
./
0.0238226,
-0.00678112,
./
0.00227948,
-0.0025326,
./
-0.00238107,
-0.00593439,
./
-0.00238555,
-0.00141785,
./
0.000922456,
0.000161074,
./
-0.00129783,
-0.00514507,
./
-0.0013547,
-0.00185021,
./
0.0077375,
-0.000138654,
./
0.0019244,
0.00908111,
./
-0.00222863,
0.00170677,
./
-0.00450432,
0.00177237,
./
0.00037578,
0.000282072,
./
0.00343459,
-0.000774212,
./
0.00242967,
0.00116035,
./
-0.00150311,
0.00057923,
./
-0.00507873,
0.002466,
./
-0.00274581,
-0.00164128,
./
0.00242044,
0.00196271,
./
0.000161163,
-0.00180505,
./
0.00918529,
-0.00634373,
./
-0.000998764,
-0.000758588,
./
0.00850386,
0.001482,
./
0.00336878,
-0.000403814,
./
-0.000752257,
-0.000604075,
./
-0.00430049,
-0.00313422,
./
0.00016901,
-0.00382558,
./
0.000702422,
0.000564241,
./
-0.0148242,
0.00084799,
./
0.024947,
-0.00223695,
./
-0.00237024,
-0.00225248,
./
-0.000120416,
0.000883383,
./
9.74529e-05,
0.000604422,
./
0.00885592,
-0.00426839,
./
-0.00282017,
0.00163915,
./
0.000643414,
0.00602473,
./
0.0183666,
0.0113273,
./
0.00406437,
0.000509551,
./
0.0025873,
0.00361284,
./
0.0111578,
-0.000710667,
./
-0.000126146,
-0.000686229,
./
-2.38283e-06,
0.000452385,
./
-0.000362186,
0.00114648,
./
-0.00483383,
-0.00423976,
./
0.000251941,
0.00077305,
./
0.00157362,
0.00330127,
./
0.00200445,
0.00344932,
./
0.00242646,
0.000847761,
./
-0.00501432,
0.000643556,
./
0.000654859,
0.000799507,
./
6.86094e-05,
-0.00440036,
./
-0.00968432,
-0.0116491,
./
-0.00536664,
-0.00148325,
./
-0.0028275,
0.000580462,
./
-0.00365953,
0.000564924,
./
-0.00422729,
0.00203569,
./
0.000170027,
0.000119306,
./
0.00898632,
-0.00417431,
./
0.00727786,
0.000437048,
./
0.00311386,
-0.00521092,
./
-0.000358663,
0.000175769,
./
0.000645589,
-0.00426074,
./
0.000333293,
-0.000563534,
./
-0.00189326,
-0.00068088,
./
0.00118251,
-0.00127487,
./
-0.00313013,
0.00882217,
./
-0.00490997,
0.00610118,
./
0.0113919,
0.0106104,
./
0.00210933,
0.00146225,
./
0.00250713,
0.00193331,
./
-0.0112754,
-0.00570475,
./
0.000343728,
-0.0024469,
./
0.000113812,
-0.00072579,
./
-0.0254114,
0.0057977,
./
0.0029934,
0.00327672,
./
0.00150721,
0.0013476,
./
0.00135223,
-0.000168747,
./
0.000200963,
0.000934241,
./
0.00575169,
-0.00312451,
./
-0.00630991,
-0.00366735,
./
-0.00388997,
0.00412703,
./
0.00317011,
0.000161785,
./
0.00159475,
0.00431386,
./
0.00252487,
0.000120358,
./
0.0100121,
0.0082258,
./
0.0103855,
0.00723464,
./
-0.00146898,
-0.000991123,
./
0.00421224,
0.000804431,
./
0.00242947,
-0.00070228,
./
-0.000185232,
-0.017812,
./
0.0117925,
-0.00234344,
./
0.00277804,
-0.0037375,
./
0.000997452,
0.00534706,
./
0.00312071,
-0.00113833,
./
-0.00092958,
-0.00112345,
./
-0.00219834,
-0.00379822,
./
0.000146309,
0.000642151,
./
-0.000918671,
-0.00352159,
./
-0.00399982,
0.000921859,
./
-0.00321996,
-0.00195599,
./
0.0238226,
-0.00678112,
./
0.00227948,
-0.0025326,
./
-0.00238107,
-0.00593439,
./
-0.00238555,
-0.00141785,
./
0.000922456,
0.000161074,
./
-0.00129783,
-0.00514507,
./
-0.0013547,
-0.00185021,
./
0.0077375,
-0.000138654,
./
0.0019244,
0.00908111,
./
-0.00222863,
0.00170677,
./
-0.00450432,
0.00177237,
./
0.00037578,
0.000282072,
./
0.00343459,
-0.000774212,
./
0.00242967,
0.00116035,
./
-0.00150311,
0.00057923,
./
-0.00507873,
0.002466,
./
-0.00274581,
-0.00164128,
./
0.00242044,
0.00196271,
./
0.000161163,
-0.00180505,
./
0.00918529,
-0.00634373,
./
-0.000998764,
-0.000758588,
./
0.00850386,
0.001482,
./
0.00336878,
-0.000403814,
./
-0.000752257,
-0.000604075,
./
-0.00430049,
-0.00313422,
./
0.00016901,
-0.00382558,
./
0.000702422,
0.000564241,
./
-0.0148242,
0.00084799,
./
0.024947,
-0.00223695,
./
-0.00237024,
-0.00225248,
./
-0.000120416,
0.000883383,
./
9.74529e-05,
0.000604422,
./
0.00885592,
-0.00426839,
./
-0.00282017,
0.00163915,
./
0.000643414,
0.00602473,
./
0.0183666,
0.0113273,
./
0.00406437,
0.000509551,
./
0.0025873,
0.00361284,
./
0.0111578,
-0.000710667,
./
-0.000126146,
-0.000686229,
./
-2.38283e-06,
0.000452385,
./
-0.000362186,
0.00114648,
./
-0.00483383,
-0.00423976,
.main.cpp
.swp
→
grad_edge/.matrix_grad.h
.swp
浏览文件 @
53f55a9b
无法预览此类型文件
grad_edge/matrix_grad.h
浏览文件 @
53f55a9b
...
...
@@ -25,7 +25,7 @@ struct edge_network
// cout_mat(data);
// cout<<"weights: "<<endl;
// cout_mat(weights);
Matrix
output
=
mul
(
get_T
(
weights
)
,
data
);
Matrix
output
=
mul
(
weights
,
data
);
output
=
add
(
output
,
bais
,
0
);
Matrix
output1
=
e_sigmoid
(
output
);
// cout<<"----------forward data--------"<<endl;
...
...
@@ -40,7 +40,7 @@ struct edge_network
}
Matrix
forward_without_act
(
Matrix
data
,
Matrix
weights
,
Matrix
bais
)
{
Matrix
output
=
mul
(
get_T
(
weights
)
,
data
);
Matrix
output
=
mul
(
weights
,
data
);
output
=
add
(
output
,
bais
,
0
);
// Matrix output1 = e_sigmoid(output);
// cout<<"----------forward data--------"<<endl;
...
...
@@ -64,24 +64,24 @@ struct edge_network
// cout<<"-----------TTTTTweights--------------"<<endl;
// cout_mat(padding(mul_simple(mul(get_T(weights),grad_next),output_before),2,2));
// cout<<"[[[[[";
cout
<<
"grad_next:"
<<
endl
;
cout_mat
(
grad_next
);
cout
<<
"weights"
<<
endl
;
cout_mat
(
weights
);
//
cout<<"grad_next:"<<endl;
//
cout_mat(grad_next);
//
cout<<"weights"<<endl;
//
cout_mat(weights);
for
(
int
index
=
0
;
index
<
output_before
.
row
;
index
++
)
{
Node
z
=
output_before
.
matrix
[
index
][
0
];
// Node sigmoid = 1/(1+(1/exp(z)));
Node
anyone
=
p_
(
z
);
change_va
(
output_before
,
index
,
0
,
anyone
.
gradient
(
z
));
cout
<<
"grad_edge: "
<<
anyone
.
gradient
(
z
)
<<
endl
;
//
cout<<"grad_edge: "<<anyone.gradient(z)<<endl;
}
cout
<<
"output_before"
<<
endl
;
cout_mat
(
output_before
);
cout
<<
"mul(weights,grad_next)"
<<
endl
;
cout_mat
(
mul
(
weights
,
grad_next
));
cout
<<
"grad_backward: "
<<
endl
;
cout_mat
(
mul_simple
(
mul
(
weights
,
grad_next
),
output_before
));
//
cout<<"output_before"<<endl;
//
cout_mat(output_before);
//
cout<<"mul(weights,grad_next)"<<endl;
//
cout_mat(mul(weights,grad_next));
//
cout<<"grad_backward: "<<endl;
//
cout_mat(mul_simple(mul(weights,grad_next),output_before));
return
mul_simple
(
mul
(
weights
,
grad_next
),
output_before
);
}
Matrix
end_layer_backward
(
Matrix
label
,
Matrix
acti_val
,
Node
loss_fun
(
Node
,
Node
),
Node
act_fun
(
Node
))
...
...
@@ -99,14 +99,14 @@ struct edge_network
Node
act
=
act_fun
(
z31
);
act_output
.
matrix
[
index_x
][
0
]
=
act
.
gradient
(
z31
);
loss_act
.
matrix
[
index_x
][
0
]
=
loss
.
gradient
(
a13
);
cout
<<
"z31: "
<<
z31
<<
endl
;
cout
<<
"z31_grad: "
<<
act
.
gradient
(
z31
)
<<
endl
;
cout
<<
"a13: "
<<
a13
<<
"t1: "
<<
t1
<<
endl
;
cout
<<
"loss: "
<<
loss
<<
endl
;
cout
<<
"a13_gradient: "
<<
loss
.
gradient
(
a13
)
<<
endl
;
//
cout<<"z31: "<<z31<<endl;
//
cout<<"z31_grad: "<<act.gradient(z31)<<endl;
//
cout<<"a13: "<<a13<<"t1: "<<t1<<endl;
//
cout<<"loss: "<<loss<<endl;
//
cout<<"a13_gradient: "<<loss.gradient(a13)<<endl;
}
Matrix
mid_grad_end
=
mul_simple
(
loss_act
,
act_output
);
cout
<<
"mid_grad_end"
;
//
cout<<"mid_grad_end";
cout_mat
(
mid_grad_end
);
return
mid_grad_end
;
}
...
...
ma
浏览文件 @
53f55a9b
无法预览此类型文件
main.cpp
浏览文件 @
53f55a9b
...
...
@@ -60,16 +60,11 @@ int main()
int
output_dim
=
2
;
edge_network
sequaltial
(
input_dim
,
output_dim
);
Matrix
output1
=
sequaltial
.
forward
(
data_mine
,
weight1
,
bais1
);
//output1 acti_val;
Matrix
output1_without_act
=
sequaltial
.
forward_without_act
(
data_mine
,
weight1
,
bais1
);
//output1_without_act without activation;
Matrix
output2
=
sequaltial
.
forward
(
output1
,
weight2
,
bais2
);
Matrix
output2_without_act
=
sequaltial
.
forward_without_act
(
output1
,
weight2
,
bais2
);
Matrix
output_end
=
sequaltial
.
end_layer_backward
(
label
,
output2_without_act
,
*
loss
,
*
act
);
//last output layer should feed the value without activation;
//output_end : the gradient of loss layer;
Matrix
backward3
=
sequaltial
.
backward
(
output_end
,
output1_without_act
,
weight2
,
*
act
);
//backward3: the gradient of the behind layer;
Matrix
weight_2_grad
=
mul
(
output_end
,
get_T
(
output1
));
Matrix
weight_1_grad
=
mul
(
backward3
,
get_T
(
data_mine
));
weight1
=
subtract
(
weight1
,
times_mat
(
0.001
,
weight_1_grad
));
...
...
nerual_test.cpp
浏览文件 @
53f55a9b
...
...
@@ -31,28 +31,61 @@ int main()
int
input_dim
=
2
;
int
output_dim
=
2
;
edge_network
sequaltial
(
input_dim
,
output_dim
);
Matrix
data_mine
=
CreateMatrix
(
100
,
2
);
Matrix
data_mine
=
CreateMatrix
(
100
,
3
);
Matrix
label_mine
=
CreateRandMat
(
100
,
1
);
Matrix
data
=
iloc
(
data_mine
,
0
,
1
,
0
,
0
);
cout
<<
"data: "
;
cout_mat
(
data
);
Matrix
label
=
iloc
(
label_mine
,
0
,
1
,
0
,
0
);
Matrix
label
=
iloc
(
label_mine
,
0
,
3
,
0
,
0
);
cout
<<
"label: "
;
cout_mat
(
label
);
Matrix
bias1
=
CreateRandMat
(
2
,
1
);
Matrix
weight1
=
CreateRandMat
(
2
,
data
.
col
);
cout
<<
"weight1: "
;
cout_mat
(
weight1
);
int
index
=
0
;
int
index
=
1
;
Matrix
backward2
=
CreateMatrix
(
2
,
1
);
Matrix
before_backward2
=
CreateMatrix
(
2
,
1
);
change_va
(
before_backward2
,
1
,
0
,
1
);
for
(
index
=
0
;
index
<
99
;
index
++
){
Matrix
output1
=
sequaltial
.
forward
(
get_T
(
get_row
(
data_mine
,
index
)),
weight1
,
bias1
);
Matrix
weight2
=
CreateRandMat
(
output1
.
row
,
2
);
Matrix
output1_without_act
=
sequaltial
.
forward_without_act
(
get_T
(
get_row
(
data_mine
,
index
)),
weight1
,
bias1
);
cout
<<
"output1_without_act: "
;
cout_mat
(
output1_without_act
);
Matrix
weight2
=
CreateRandMat
(
2
,
output1
.
row
);
cout
<<
"weight2: "
<<
endl
;
cout_mat
(
weight2
);
Matrix
bias2
=
CreateRandMat
(
weight2
.
row
,
1
);
Matrix
output2
=
sequaltial
.
forward
(
output1
,
weight2
,
bias2
);
Matrix
output2_without_act
=
sequaltial
.
forward_without_act
(
output1
,
weight2
,
bias2
);
cout
<<
"output2_without_act: "
;
cout_mat
(
output2_without_act
);
cout
<<
"output2: "
;
cout_mat
(
output2
);
cout
<<
"output1:"
<<
endl
;
cout_mat
(
output1
);
Matrix
weight3
=
CreateRandMat
(
3
,
output2
.
row
);
Matrix
bias3
=
CreateRandMat
(
weight3
.
row
,
1
);
Matrix
output3
=
sequaltial
.
forward
(
output2
,
weight3
,
bias3
);
Matrix
output3_without_act
=
sequaltial
.
forward_without_act
(
output2
,
weight3
,
bias3
);
cout
<<
"row: "
<<
label
.
row
<<
"col: "
<<
label
.
col
;
Matrix
output_end
=
sequaltial
.
end_layer_backward
(
label
,
output3_without_act
,
*
loss
,
*
act
);
cout
<<
"outputend: "
;
cout_mat
(
output_end
);
cout
<<
"output3_without_act: "
;
cout_mat
(
output3_without_act
);
cout
<<
"output3: "
;
cout_mat
(
output3
);
Matrix
backward3
=
sequaltial
.
backward
(
output_end
,
output2_without_act
,
get_T
(
weight3
),
*
act
);
cout
<<
"backward_before: "
;
cout_mat
(
before_backward2
);
before_backward2
=
add
(
before_backward2
,
backward2
);
backward2
=
sequaltial
.
backward
(
backward3
,
output1_without_act
,
get_T
(
weight2
),
*
act
);
cout
<<
"backward2: "
;
save_txt
(
backward2
,
"a.csv"
);
cout_mat
(
before_backward2
);
cout_mat
(
backward2
);
//can change the before_backward2 values;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录