Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c4d699c7
提交
c4d699c7
authored
10月 21, 2020
作者:
Brandon T. Willard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply isort to top-level tests package modules
上级
1be3fe3b
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
38 行增加
和
61 行删除
+38
-61
diverse_tests.py
tests/diverse_tests.py
+1
-1
record.py
tests/record.py
+2
-1
test_2nd_order_grads.py
tests/test_2nd_order_grads.py
+2
-4
test_breakpoint.py
tests/test_breakpoint.py
+1
-3
test_config.py
tests/test_config.py
+1
-1
test_determinism.py
tests/test_determinism.py
+4
-8
test_gradient.py
tests/test_gradient.py
+4
-10
test_ifelse.py
tests/test_ifelse.py
+3
-6
test_pickle_unpickle_theano_fn.py
tests/test_pickle_unpickle_theano_fn.py
+3
-1
test_printing.py
tests/test_printing.py
+3
-6
test_record.py
tests/test_record.py
+1
-2
test_rop.py
tests/test_rop.py
+7
-8
test_updates.py
tests/test_updates.py
+1
-1
unittest_tools.py
tests/unittest_tools.py
+5
-9
没有找到文件。
tests/diverse_tests.py
浏览文件 @
c4d699c7
...
...
@@ -7,8 +7,8 @@
"""
import
numpy
as
np
import
numpy.random
import
theano
import
theano
from
tests
import
unittest_tools
as
utt
...
...
tests/record.py
浏览文件 @
c4d699c7
from
theano.compile
import
Mode
import
theano
from
theano.compile
import
Mode
from
theano.printing
import
hex_digest
__authors__
=
"Ian Goodfellow"
__credits__
=
[
"Ian Goodfellow"
]
__license__
=
"3-clause BSD"
...
...
tests/test_2nd_order_grads.py
浏览文件 @
c4d699c7
...
...
@@ -2,12 +2,10 @@
Test for jacobian/hessian functions in Theano
"""
import
numpy
as
np
import
theano
from
theano
import
tensor
import
theano
from
tests
import
unittest_tools
as
utt
from
theano
import
tensor
utt
.
seed_rng
()
...
...
tests/test_breakpoint.py
浏览文件 @
c4d699c7
...
...
@@ -2,10 +2,8 @@ import numpy as np
import
theano
import
theano.tensor
as
tt
from
theano.breakpoint
import
PdbBreakpoint
from
tests
import
unittest_tools
as
utt
from
theano.breakpoint
import
PdbBreakpoint
class
TestPdbBreakpoint
(
utt
.
InferShapeTester
):
...
...
tests/test_config.py
浏览文件 @
c4d699c7
...
...
@@ -2,7 +2,7 @@
Test config options.
"""
from
theano.configparser
import
AddConfigVar
,
ConfigParam
,
THEANO_FLAGS_DICT
from
theano.configparser
import
THEANO_FLAGS_DICT
,
AddConfigVar
,
ConfigParam
class
TestConfig
:
...
...
tests/test_determinism.py
浏览文件 @
c4d699c7
import
numpy
as
np
import
theano
from
collections
import
OrderedDict
import
numpy
as
np
from
six
import
StringIO
import
theano
from
tests
import
disturb_mem
from
tests.record
import
Record
,
RecordMode
from
theano
import
config
,
shared
from
theano.printing
import
var_descriptor
from
tests
import
disturb_mem
from
tests.record
import
RecordMode
,
Record
def
sharedX
(
x
,
name
=
None
):
x
=
np
.
cast
[
config
.
floatX
](
x
)
...
...
tests/test_gradient.py
浏览文件 @
c4d699c7
import
pytes
t
from
collections
import
OrderedDic
t
import
numpy
as
np
import
pytest
import
theano
from
collections
import
OrderedDict
from
theano
import
gof
,
change_flags
,
gradient
,
config
from
tests
import
unittest_tools
as
utt
from
theano
import
change_flags
,
config
,
gof
,
gradient
from
theano.gof.null_type
import
NullType
from
theano.sandbox.rng_mrg
import
MRG_RandomStreams
as
RandomStreams
from
tests
import
unittest_tools
as
utt
one
=
theano
.
tensor
.
as_tensor_variable
(
1.0
)
...
...
tests/test_ifelse.py
浏览文件 @
c4d699c7
import
pytest
from
functools
import
reduce
import
numpy
as
np
import
pytest
import
theano
import
theano.ifelse
from
functools
import
reduce
from
tests
import
unittest_tools
as
utt
from
theano
import
tensor
from
theano.ifelse
import
IfElse
,
ifelse
from
tests
import
unittest_tools
as
utt
__docformat__
=
"restructedtext en"
__authors__
=
"Razvan Pascanu "
...
...
tests/test_pickle_unpickle_theano_fn.py
浏览文件 @
c4d699c7
...
...
@@ -12,12 +12,14 @@ The config option is in configdefaults.py
This note is written by Li Yao.
"""
from
collections
import
OrderedDict
import
numpy
as
np
import
six.moves.cPickle
as
pickle
import
theano
import
theano.tensor
as
tt
from
collections
import
OrderedDict
floatX
=
"float32"
...
...
tests/test_printing.py
浏览文件 @
c4d699c7
...
...
@@ -3,16 +3,13 @@ Tests of printing functionality
"""
import
logging
import
pytest
import
numpy
as
np
import
pytest
from
six.moves
import
StringIO
import
theano
import
theano.tensor
as
tensor
from
six.moves
import
StringIO
from
theano.printing
import
min_informative_str
,
debugprint
from
theano.printing
import
debugprint
,
min_informative_str
@pytest.mark.skipif
(
not
theano
.
printing
.
pydot_imported
,
reason
=
"pydot not available"
)
...
...
tests/test_record.py
浏览文件 @
c4d699c7
from
six.moves
import
StringIO
from
tests.record
import
MismatchError
,
Record
,
RecordMode
from
theano
import
function
from
theano.tensor
import
iscalar
from
tests.record
import
Record
,
MismatchError
,
RecordMode
def
test_record_good
():
# Tests that when we record a sequence of events, then
...
...
tests/test_rop.py
浏览文件 @
c4d699c7
...
...
@@ -13,18 +13,17 @@ check_nondiff_rop,
import
itertools
import
pytest
import
numpy
as
np
import
theano
import
pytest
from
theano
import
function
from
theano
import
tensor
from
theano.gof
import
Op
,
Apply
import
theano
from
tests
import
unittest_tools
as
utt
from
theano
import
function
,
tensor
from
theano.gof
import
Apply
,
Op
from
theano.gradient
import
grad_undefined
from
theano.tensor.signal.pool
import
Pool
from
theano.tensor.nnet
import
conv
,
conv2d
from
tests
import
unittest_tools
as
utt
from
theano.tensor.signal.pool
import
Pool
class
BreakRop
(
Op
):
...
...
tests/test_updates.py
浏览文件 @
c4d699c7
import
pytest
import
theano
import
theano.tensor
as
tt
from
theano.updates
import
OrderedUpdates
...
...
tests/unittest_tools.py
浏览文件 @
c4d699c7
import
sys
import
logging
import
pytest
import
sys
from
copy
import
copy
,
deepcopy
from
functools
import
wraps
import
numpy
as
np
import
pytest
from
six
import
integer_types
import
theano
import
theano.tensor
as
tt
from
functools
import
wraps
from
copy
import
copy
,
deepcopy
from
six
import
integer_types
from
theano
import
config
from
theano.compile.debugmode
import
str_diagnostic
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论