Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蒋福林-华西口腔
plotneuralnet
提交
e96bc852
P
plotneuralnet
项目概览
蒋福林-华西口腔
/
plotneuralnet
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
plotneuralnet
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
e96bc852
编写于
11月 06, 2020
作者:
H
Haris Iqbal
提交者:
GitHub
11月 06, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #93 from ZhangYikaii/master
add sum layer
上级
322d8ddf
29834341
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
0 deletion
+16
-0
pycore/tikzeng.py
pycore/tikzeng.py
+14
-0
pyexamples/test_simple.py
pyexamples/test_simple.py
+2
-0
未找到文件。
pycore/tikzeng.py
浏览文件 @
e96bc852
...
...
@@ -20,6 +20,7 @@ def to_cor():
\def\FcColor{rgb:blue,5;red,2.5;white,5}
\def\FcReluColor{rgb:blue,5;red,5;white,4}
\def\SoftmaxColor{rgb:magenta,5;black,7}
\def\SumColor{rgb:blue,5;green,15}
"""
def
to_begin
():
...
...
@@ -164,6 +165,19 @@ def to_SoftMax( name, s_filer=10, offset="(0,0,0)", to="(0,0,0)", width=1.5, hei
};
"""
def
to_Sum
(
name
,
offset
=
"(0,0,0)"
,
to
=
"(0,0,0)"
,
radius
=
2.5
,
opacity
=
0.6
):
return
r
"""
\pic[shift={"""
+
offset
+
"""}] at """
+
to
+
"""
{Ball={
name="""
+
name
+
""",
fill=\SumColor,
opacity="""
+
str
(
opacity
)
+
""",
radius="""
+
str
(
radius
)
+
""",
logo=$+$
}
};
"""
def
to_connection
(
of
,
to
):
return
r
"""
...
...
pyexamples/test_simple.py
浏览文件 @
e96bc852
...
...
@@ -15,6 +15,8 @@ arch = [
to_Pool
(
"pool2"
,
offset
=
"(0,0,0)"
,
to
=
"(conv2-east)"
,
height
=
28
,
depth
=
28
,
width
=
1
),
to_SoftMax
(
"soft1"
,
10
,
"(3,0,0)"
,
"(pool1-east)"
,
caption
=
"SOFT"
),
to_connection
(
"pool2"
,
"soft1"
),
to_Sum
(
"sum1"
,
offset
=
"(1.5,0,0)"
,
to
=
"(soft1-east)"
,
radius
=
2.5
,
opacity
=
0.6
),
to_connection
(
"soft1"
,
"sum1"
),
to_end
()
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录