Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
6f838fe0
提交
6f838fe0
authored
10月 21, 2020
作者:
Brandon T. Willard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply isort to tests.compile sub-package
上级
c4d699c7
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
29 行增加
和
47 行删除
+29
-47
test_builders.py
tests/compile/test_builders.py
+5
-9
test_debugmode.py
tests/compile/test_debugmode.py
+3
-8
test_function.py
tests/compile/test_function.py
+1
-1
test_function_module.py
tests/compile/test_function_module.py
+6
-7
test_misc.py
tests/compile/test_misc.py
+1
-1
test_mode.py
tests/compile/test_mode.py
+1
-2
test_nanguardmode.py
tests/compile/test_nanguardmode.py
+2
-2
test_ops.py
tests/compile/test_ops.py
+5
-5
test_pfunc.py
tests/compile/test_pfunc.py
+3
-7
test_profiling.py
tests/compile/test_profiling.py
+1
-2
test_shared.py
tests/compile/test_shared.py
+1
-3
没有找到文件。
tests/compile/test_builders.py
浏览文件 @
6f838fe0
from
functools
import
partial
import
numpy
as
np
import
pytest
import
theano
import
theano.tensor
as
tt
from
tests
import
unittest_tools
from
theano
import
config
,
shared
from
theano.gradient
import
DisconnectedType
from
theano.gof.null_type
import
NullType
from
theano.compile
import
function
from
theano.tensor.shared_randomstreams
import
RandomStreams
from
theano.compile.builders
import
OpFromGraph
from
tests
import
unittest_tools
from
theano.gof.null_type
import
NullType
from
theano.gradient
import
DisconnectedType
from
theano.tensor.shared_randomstreams
import
RandomStreams
class
TestOpFromGraph
(
unittest_tools
.
InferShapeTester
):
...
...
tests/compile/test_debugmode.py
浏览文件 @
6f838fe0
import
sys
import
numpy
as
np
import
pytest
from
six
import
reraise
import
theano
import
theano.tensor
from
six
import
reraise
from
theano
import
config
from
theano
import
gof
from
theano.compile
import
debugmode
from
tests
import
unittest_tools
as
utt
from
theano
import
config
,
gof
from
theano.compile
import
debugmode
def
test_debugmode_basic
():
...
...
tests/compile/test_function.py
浏览文件 @
6f838fe0
import
six.moves.cPickle
as
pickle
import
os
import
shutil
import
tempfile
import
numpy
as
np
import
pytest
import
six.moves.cPickle
as
pickle
import
theano
from
theano.compile.io
import
In
...
...
tests/compile/test_function_module.py
浏览文件 @
6f838fe0
import
copy
import
six.moves.cPickle
as
pickle
import
time
import
numpy
as
np
import
pytest
import
tim
e
import
six.moves.cPickle
as
pickl
e
import
theano
import
theano.tensor
as
tt
import
theano.gpuarray
import
theano.tensor
as
tt
from
theano
import
config
,
gof
from
theano.compat
import
exc_message
from
theano.compile
import
UnusedInputError
,
function
from
theano.compile.io
import
In
,
Out
from
theano.compile
import
function
from
theano.compile
import
UnusedInputError
from
theano.gof
import
MissingInputError
from
theano.compat
import
exc_message
def
PatternOptimizer
(
p1
,
p2
,
ign
=
True
):
...
...
tests/compile/test_misc.py
浏览文件 @
6f838fe0
import
numpy
as
np
from
theano
import
tensor
from
theano.compile.pfunc
import
pfunc
from
theano.compile.sharedvalue
import
shared
from
theano
import
tensor
from
theano.tensor.nnet
import
sigmoid
...
...
tests/compile/test_mode.py
浏览文件 @
6f838fe0
...
...
@@ -2,8 +2,7 @@ import pytest
import
theano
import
theano.tensor
as
tt
from
theano.compile.mode
import
Mode
,
AddFeatureOptimizer
from
theano.compile.mode
import
AddFeatureOptimizer
,
Mode
from
theano.gof.toolbox
import
NoOutputFromInplace
...
...
tests/compile/test_nanguardmode.py
浏览文件 @
6f838fe0
...
...
@@ -3,12 +3,12 @@ This test is for testing the NanGuardMode.
"""
import
logging
import
pytest
import
numpy
as
np
import
pytest
import
theano
import
theano.tensor
as
tt
from
theano.compile.nanguardmode
import
NanGuardMode
...
...
tests/compile/test_ops.py
浏览文件 @
6f838fe0
...
...
@@ -3,15 +3,15 @@
"""
import
numpy
as
np
import
pickle
import
theano
from
theano
import
function
from
theano.tensor
import
dmatrix
,
dvector
from
theano.compile
import
as_op
import
numpy
as
np
import
theano
from
tests
import
unittest_tools
as
utt
from
theano
import
function
from
theano.compile
import
as_op
from
theano.tensor
import
dmatrix
,
dvector
# This is for test_pickle, since the function still has to be
...
...
tests/compile/test_pfunc.py
浏览文件 @
6f838fe0
import
pytest
import
numpy
as
np
import
pytest
import
theano
from
theano.tensor
import
dmatrix
,
iscalar
,
lscalar
,
dmatrices
from
theano
import
tensor
from
theano.compile
import
In
from
theano.compile
import
pfunc
from
theano.compile
import
shared
from
theano.compile
import
config
from
theano.compile
import
In
,
config
,
pfunc
,
shared
from
theano.tensor
import
dmatrices
,
dmatrix
,
iscalar
,
lscalar
def
data_of
(
s
):
...
...
tests/compile/test_profiling.py
浏览文件 @
6f838fe0
...
...
@@ -2,11 +2,10 @@
import
numpy
as
np
from
six.moves
import
StringIO
import
theano
import
theano.tensor
as
tt
from
six.moves
import
StringIO
from
theano.ifelse
import
ifelse
...
...
tests/compile/test_shared.py
浏览文件 @
6f838fe0
...
...
@@ -2,10 +2,8 @@ import numpy as np
import
pytest
import
theano
from
theano.compile.sharedvalue
import
SharedVariable
,
generic
,
shared
from
theano.tensor
import
Tensor
,
TensorType
from
theano.compile.sharedvalue
import
shared
from
theano.compile.sharedvalue
import
SharedVariable
from
theano.compile.sharedvalue
import
generic
class
TestSharedVariable
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论