Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
845bd561
提交
845bd561
authored
10月 29, 2010
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
backport to python 2.4
上级
a67a4849
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
5 行删除
+14
-5
neighbourhoods.py
theano/sandbox/neighbourhoods.py
+4
-1
rng_mrg.py
theano/sandbox/rng_mrg.py
+4
-2
test_nnet.py
theano/tensor/nnet/tests/test_nnet.py
+2
-1
test_scan.py
theano/tests/test_scan.py
+4
-1
没有找到文件。
theano/sandbox/neighbourhoods.py
浏览文件 @
845bd561
...
...
@@ -65,7 +65,10 @@ class NeighbourhoodsFromImages(Op):
"""
self
.
n_dims_before
=
n_dims_before
self
.
dims_neighbourhoods
=
dims_neighbourhoods
self
.
strides
=
strides
if
not
strides
is
None
else
dims_neighbourhoods
if
not
strides
is
None
:
self
.
strides
=
strides
else
:
self
.
strides
=
dims_neighbourhoods
self
.
ignore_border
=
ignore_border
self
.
inverse
=
inverse
...
...
theano/sandbox/rng_mrg.py
浏览文件 @
845bd561
...
...
@@ -144,8 +144,10 @@ class mrg_uniform_base(Op):
def
__hash__
(
self
):
return
hash
(
type
(
self
))
^
hash
(
self
.
output_type
)
^
hash
(
self
.
inplace
)
def
__str__
(
self
):
return
self
.
__class__
.
__name__
+
"{
%
s,
%
s}"
%
(
self
.
output_type
,
"inplace"
if
self
.
inplace
else
"no_inplace"
)
if
self
.
inplace
:
s
=
"inplace"
else
:
s
=
"no_inplace"
return
self
.
__class__
.
__name__
+
"{
%
s,
%
s}"
%
(
self
.
output_type
,
s
)
def
make_node
(
self
,
rstate
,
size
):
# error checking slightly redundant here, since
...
...
theano/tensor/nnet/tests/test_nnet.py
浏览文件 @
845bd561
...
...
@@ -7,6 +7,7 @@ import theano
from
theano
import
tensor
as
T
from
theano
import
tensor
from
theano
import
gof
from
theano.gof.python25
import
all
from
theano.tests
import
unittest_tools
as
utt
from
theano
import
printing
,
pprint
from
theano.tensor.nnet
import
(
categorical_crossentropy
,
...
...
@@ -928,7 +929,7 @@ def test_asymptotic_32():
assert
gxval
[
0
,
1
]
==
0.25
class
Test_softmax_opt
()
:
class
Test_softmax_opt
:
# Test that expressions of softmax in terms of exponentiated things divided by row sums
# are replaced by softmax expressions.
...
...
theano/tests/test_scan.py
浏览文件 @
845bd561
...
...
@@ -77,7 +77,10 @@ class multiple_outputs_numeric_grad:
for
i
in
xrange
(
len
(
pt
)):
if
ndarray_mask
[
i
]:
# It is a ndarray that we can tweak
_eps
=
eps
if
eps
else
dtype_eps
if
eps
:
_eps
=
eps
else
:
_eps
=
dtype_eps
if
pt
[
i
]
.
ndim
:
_g
=
[]
# it has several dimensions:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论