Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d9c41f58
提交
d9c41f58
authored
1月 25, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #378 from pascanur/remaining_scan_errors
Remaining scan errors
上级
df5f3591
a6a76ddd
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
0 行删除
+10
-0
test_scan.py
theano/sandbox/scan_module/tests/test_scan.py
+10
-0
test_scan.py
theano/scan_module/tests/test_scan.py
+0
-0
没有找到文件。
theano/sandbox/scan_module/tests/test_scan.py
浏览文件 @
d9c41f58
...
@@ -466,6 +466,11 @@ class TestScan(unittest.TestCase):
...
@@ -466,6 +466,11 @@ class TestScan(unittest.TestCase):
def
test002_generator_one_scalar_output
(
self
):
def
test002_generator_one_scalar_output
(
self
):
# The test fails, because the `work-in-progress` ScanOp always runs in
# place (even when told not to by DebugMode). As this op will change
# soon, and it is in the sandbox and not for user consumption, the
# error is marked as KnownFailure
raise
KnownFailureTest
def
f_pow2
(
x_tm1
):
def
f_pow2
(
x_tm1
):
return
2
*
x_tm1
return
2
*
x_tm1
...
@@ -496,6 +501,11 @@ class TestScan(unittest.TestCase):
...
@@ -496,6 +501,11 @@ class TestScan(unittest.TestCase):
# simple rnn, one input, one state, weights for each; input/state
# simple rnn, one input, one state, weights for each; input/state
# are vectors, weights are scalars
# are vectors, weights are scalars
def
test003_one_sequence_one_output_and_weights
(
self
):
def
test003_one_sequence_one_output_and_weights
(
self
):
# The test fails, because the `work-in-progress` ScanOp always runs in
# place (even when told not to by DebugMode). As this op will change
# soon, and it is in the sandbox and not for user consumption, the
# error is marked as KnownFailure
raise
KnownFailureTest
def
f_rnn
(
u_t
,
x_tm1
,
W_in
,
W
):
def
f_rnn
(
u_t
,
x_tm1
,
W_in
,
W
):
return
u_t
*
W_in
+
x_tm1
*
W
return
u_t
*
W_in
+
x_tm1
*
W
u
=
theano
.
tensor
.
vector
(
'u'
)
u
=
theano
.
tensor
.
vector
(
'u'
)
...
...
theano/scan_module/tests/test_scan.py
浏览文件 @
d9c41f58
This source diff could not be displayed because it is too large. You can
view the blob
instead.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论