Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
151e8f66
提交
151e8f66
authored
6月 09, 2011
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Indent fix
上级
5df185d5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
test_bench_loopfusion.py
theano/sandbox/cuda/tests/test_bench_loopfusion.py
+6
-6
没有找到文件。
theano/sandbox/cuda/tests/test_bench_loopfusion.py
浏览文件 @
151e8f66
...
...
@@ -61,7 +61,7 @@ class Kouh2008(object):
dtype
=
x_list
[
0
]
.
dtype
n_terms
=
len
(
x_list
)
def
shared_uniform
(
low
,
high
,
size
,
name
):
def
shared_uniform
(
low
,
high
,
size
,
name
):
return
_shared_uniform
(
rng
,
low
,
high
,
size
,
dtype
,
name
)
use_softmax_w
=
True
...
...
@@ -86,7 +86,7 @@ class Kouh2008(object):
raise
ValueError
(
'exponent range must have low <= high'
)
p_unbounded
=
shared_uniform
(
low
=-
0.1
,
high
=
0.1
,
size
=
(
n_out
,),
name
=
'p'
)
q_unbounded
=
shared_uniform
(
low
=-
0.1
,
high
=
0.1
,
size
=
(
n_out
,),
name
=
'q'
)
q_unbounded
=
shared_uniform
(
low
=-
0.1
,
high
=
0.1
,
size
=
(
n_out
,),
name
=
'q'
)
r_unbounded
=
shared_uniform
(
low
=-
0.1
,
high
=
0.1
,
size
=
(
n_out
,),
name
=
'r'
)
k_unbounded
=
shared_uniform
(
low
=-
0.2
,
high
=
0.2
,
size
=
(
n_out
,),
name
=
'k'
)
# biases
...
...
@@ -122,7 +122,7 @@ class Kouh2008(object):
"""Return a KouhLayer instance with random parameters
The parameters are drawn on a range [typically] suitable for fine-tuning by gradient
descent.
descent.
:param input: a tensor of shape (n_examples, n_in)
...
...
@@ -137,7 +137,7 @@ class Kouh2008(object):
many 'simple cell' responses.
:param eps: this amount is added to the softplus of filter responses as a baseline
firing rate (that prevents a subsequent error from ``pow(0, p)``)
firing rate (that prevents a subsequent error from ``pow(0, p)``)
:returns: KouhLayer instance with freshly-allocated random weights.
...
...
@@ -149,7 +149,7 @@ class Kouh2008(object):
dtype
=
input
.
dtype
_logger
.
debug
(
'dtype
%
s'
%
dtype
)
def
shared_uniform
(
low
,
high
,
size
,
name
):
def
shared_uniform
(
low
,
high
,
size
,
name
):
return
_shared_uniform
(
rng
,
low
,
high
,
size
,
dtype
,
name
)
f_list
=
[
shared_uniform
(
low
=-
2.0
/
numpy
.
sqrt
(
n_in
),
high
=
2.0
/
numpy
.
sqrt
(
n_in
),
size
=
(
n_in
,
n_out
),
name
=
'f_
%
i'
%
i
)
...
...
@@ -232,7 +232,7 @@ class Config(object):
if
dtype2
==
'floatX'
:
import
theano.config
as
c
dtype2
=
c
.
config
.
get
(
'scalar.floatX'
)
rng_seed
=
23498
n_hid
=
300
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论