Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e97cae43
提交
e97cae43
authored
10月 21, 2020
作者:
Brandon T. Willard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply isort to tests.sandbox sub-package modules
上级
558d455d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
17 行增加
和
25 行删除
+17
-25
test_linalg.py
tests/sandbox/linalg/test_linalg.py
+11
-15
test_jax.py
tests/sandbox/test_jax.py
+2
-2
test_minimal.py
tests/sandbox/test_minimal.py
+3
-4
test_multinomial.py
tests/sandbox/test_multinomial.py
+0
-1
test_rng_mrg.py
tests/sandbox/test_rng_mrg.py
+1
-3
没有找到文件。
tests/sandbox/linalg/test_linalg.py
浏览文件 @
e97cae43
import
pytest
import
numpy
as
np
import
numpy.linalg
import
pytest
import
theano
from
theano
import
config
,
tensor
,
function
from
theano.tensor.basic
import
_allclose
from
theano.tensor.nlinalg
import
MatrixInverse
from
theano.tensor
import
DimShuffle
from
tests
import
unittest_tools
as
utt
from
tests.test_rop
import
break_op
from
theano
import
config
,
function
,
tensor
# The one in comment are not tested...
from
theano.sandbox.linalg.ops
import
Cholesky
# PSD_hint,; op class
from
theano.sandbox.linalg.ops
import
(
Cholesky
,
# op class
matrix_inverse
,
Solve
,
solve
,
# PSD_hint,
spectral_radius_bound
,
imported_scipy
,
inv_as_solve
,
matrix_inverse
,
solve
,
spectral_radius_bound
,
)
from
t
ests
import
unittest_tools
as
utt
from
t
ests.test_rop
import
break_op
from
theano.tensor
import
DimShuffle
from
t
heano.tensor.basic
import
_allclose
from
t
heano.tensor.nlinalg
import
MatrixInverse
def
test_rop_lop
():
...
...
tests/sandbox/test_jax.py
浏览文件 @
e97cae43
import
pytest
import
numpy
as
np
import
pytest
import
theano
import
theano.tensor
as
tt
jax
=
pytest
.
importorskip
(
"jax"
)
from
functools
import
partial
# noqa: E402
...
...
tests/sandbox/test_minimal.py
浏览文件 @
e97cae43
import
pytest
import
numpy
as
np
from
theano
import
tensor
,
function
from
theano.sandbox.minimal
import
minimal
import
pytest
from
tests
import
unittest_tools
as
utt
from
theano
import
function
,
tensor
from
theano.sandbox.minimal
import
minimal
@pytest.mark.skip
(
reason
=
"Unfinished test"
)
...
...
tests/sandbox/test_multinomial.py
浏览文件 @
e97cae43
import
numpy
as
np
import
tests.unittest_tools
as
utt
from
theano
import
config
,
function
,
tensor
from
theano.sandbox
import
multinomial
...
...
tests/sandbox/test_rng_mrg.py
浏览文件 @
e97cae43
...
...
@@ -6,13 +6,11 @@ import numpy as np
import
pytest
import
theano
from
tests
import
unittest_tools
as
utt
from
theano
import
change_flags
,
config
,
tensor
from
theano.sandbox
import
rng_mrg
from
theano.sandbox.rng_mrg
import
MRG_RandomStreams
from
tests
import
unittest_tools
as
utt
# TODO: test MRG_RandomStreams
# Partly done in test_consistency_randomstreams
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论