Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
1983af1c
提交
1983af1c
authored
8月 10, 2017
作者:
AndreiCostinescu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changed comments to docstrings where necessary in theano/compile/tests
上级
36b9ee2a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
20 行增加
和
12 行删除
+20
-12
test_debugmode.py
theano/compile/tests/test_debugmode.py
+11
-9
test_modes.py
theano/compile/tests/test_modes.py
+3
-1
test_nanguardmode.py
theano/compile/tests/test_nanguardmode.py
+3
-1
test_ops.py
theano/compile/tests/test_ops.py
+3
-1
没有找到文件。
theano/compile/tests/test_debugmode.py
浏览文件 @
1983af1c
...
@@ -96,12 +96,13 @@ off_by_half = BROKEN_ON_PURPOSE_Add(True)
...
@@ -96,12 +96,13 @@ off_by_half = BROKEN_ON_PURPOSE_Add(True)
class
WeirdBrokenOp
(
gof
.
Op
):
class
WeirdBrokenOp
(
gof
.
Op
):
# This op can be inplace if behaviour is 'times1_inplace'
"""
# This op can be destructive if behaviour is 'times2_inplace'
This op can be inplace if behaviour is 'times1_inplace'
#
This op can be destructive if behaviour is 'times2_inplace'
# In both cases, it does not set the destroy_map or view_map correctly so
# it should raise an error in DebugMode.
In both cases, it does not set the destroy_map or view_map correctly so
it should raise an error in DebugMode.
"""
__props__
=
(
"behaviour"
,
)
__props__
=
(
"behaviour"
,
)
def
__init__
(
self
,
behaviour
):
def
__init__
(
self
,
behaviour
):
...
@@ -716,11 +717,12 @@ class BrokenCImplementationAdd(gof.Op):
...
@@ -716,11 +717,12 @@ class BrokenCImplementationAdd(gof.Op):
class
VecAsRowAndCol
(
gof
.
Op
):
class
VecAsRowAndCol
(
gof
.
Op
):
# Transforms a vector into a row and a column.
"""
#
Transforms a vector into a row and a column.
# This Op exists to check everything is correct when an Op has
# two outputs with different broadcasting patterns.
This Op exists to check everything is correct when an Op has
two outputs with different broadcasting patterns.
"""
__props__
=
()
__props__
=
()
def
make_node
(
self
,
v
):
def
make_node
(
self
,
v
):
...
...
theano/compile/tests/test_modes.py
浏览文件 @
1983af1c
# Test compilation modes
"""
Test compilation modes
"""
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
import
copy
import
copy
import
unittest
import
unittest
...
...
theano/compile/tests/test_nanguardmode.py
浏览文件 @
1983af1c
# This test is for testing the NanGuardMode.
"""
This test is for testing the NanGuardMode.
"""
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
import
logging
import
logging
...
...
theano/compile/tests/test_ops.py
浏览文件 @
1983af1c
# Tests for the Op decorator
"""
Tests for the Op decorator
"""
from
__future__
import
absolute_import
,
print_function
,
division
from
__future__
import
absolute_import
,
print_function
,
division
import
numpy
as
np
import
numpy
as
np
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论