Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f309c22e
Unverified
提交
f309c22e
authored
8月 07, 2025
作者:
Ricardo Vieira
提交者:
GitHub
8月 07, 2025
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Reduce number of slow tests and balance parts (#1569)
* Skip slow numba pad tests * Reduce number of Second tests * Update test.yml
上级
0fd160b6
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
32 行删除
+20
-32
test.yml
.github/workflows/test.yml
+12
-8
test_pad.py
tests/link/numba/test_pad.py
+3
-0
test_basic.py
tests/tensor/test_basic.py
+5
-24
没有找到文件。
.github/workflows/test.yml
浏览文件 @
f309c22e
...
...
@@ -84,14 +84,12 @@ jobs:
install-torch
:
[
0
]
install-xarray
:
[
0
]
part
:
-
"
tests
--ignore=tests/tensor
--ignore=tests/scan
--ignore=tests/
sparse
--ignore=tests/
xtensor"
-
"
tests
--ignore=tests/tensor
--ignore=tests/scan
--ignore=tests/xtensor"
-
"
tests/scan"
-
"
tests/sparse"
-
"
tests/tensor
--ignore=tests/tensor/conv
--ignore=tests/tensor/rewriting
--ignore=tests/tensor/test_math.py
--ignore=tests/tensor/test_basic.py
--ignore=tests/tensor/test_inplace.py
--ignore=tests/tensor/test_blas.py
--ignore=tests/tensor/test_elemwise.py
--ignore=tests/tensor/test_math_scipy.py"
-
"
tests/tensor/conv"
-
"
tests/tensor
--ignore=tests/tensor/rewriting
--ignore=tests/tensor/test_math.py
--ignore=tests/tensor/test_basic.py
--ignore=tests/tensor/test_inplace.py
--ignore=tests/tensor/conv
--ignore=tests/tensor/test_blas.py
--ignore=tests/tensor/test_elemwise.py
--ignore=tests/tensor/test_math_scipy.py"
-
"
tests/tensor/rewriting"
-
"
tests/tensor/test_math.py"
-
"
tests/tensor/test_basic.py
tests/tensor/test_inplace.py"
-
"
tests/tensor/test_basic.py
tests/tensor/test_inplace.py
tests/tensor/conv
"
-
"
tests/tensor/test_blas.py
tests/tensor/test_elemwise.py
tests/tensor/test_math_scipy.py"
exclude
:
-
python-version
:
"
3.10"
...
...
@@ -123,14 +121,21 @@ jobs:
numpy-version
:
"
~=2.1.0"
fast-compile
:
0
float32
:
0
part
:
"
tests/link/numba"
part
:
"
tests/link/numba
--ignore=tests/link/numba/test_slinalg.py
"
-
install-numba
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.13"
numpy-version
:
"
~=2.1.0"
fast-compile
:
0
float32
:
0
part
:
"
tests/link/numba"
part
:
"
tests/link/numba
--ignore=tests/link/numba/test_slinalg.py"
-
install-numba
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.13"
numpy-version
:
"
~=2.1.0"
fast-compile
:
0
float32
:
0
part
:
"
tests/link/numba/test_slinalg.py"
-
install-jax
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.10"
...
...
@@ -343,4 +348,3 @@ jobs:
directory
:
./coverage/
fail_ci_if_error
:
true
token
:
${{ secrets.CODECOV_TOKEN }}
tests/link/numba/test_pad.py
浏览文件 @
f309c22e
...
...
@@ -11,6 +11,9 @@ floatX = config.floatX
RTOL
=
ATOL
=
1e-6
if
floatX
.
endswith
(
"64"
)
else
1e-3
@pytest.mark.skip
(
"Numba compilation is too slow and this is just a test for dispatch of OpFromGraph"
)
@pytest.mark.parametrize
(
"mode, kwargs"
,
[
...
...
tests/tensor/test_basic.py
浏览文件 @
f309c22e
...
...
@@ -191,15 +191,7 @@ TestSecondBroadcast = makeTester(
name
=
"SecondBroadcastTester"
,
op
=
second
,
expected
=
_numpy_second
,
good
=
dict
(
itertools
.
chain
(
multi_dtype_checks
((
4
,
5
),
(
5
,)),
multi_dtype_checks
((
2
,
3
,
2
),
(
3
,
2
)),
multi_dtype_checks
((
2
,
3
,
2
),
(
2
,)),
)
),
# I can't think of any way to make this fail at build time
# Just some simple smoke tests
good
=
dict
(
multi_dtype_checks
((
4
,
2
,
3
,
2
),
(
3
,
2
))),
bad_runtime
=
dict
(
fail1
=
(
random
(
5
,
4
),
random
(
5
)),
fail2
=
(
random
(
3
,
2
,
3
),
random
(
6
,
9
)),
...
...
@@ -207,26 +199,15 @@ TestSecondBroadcast = makeTester(
),
)
# We exclude local_fill_to_alloc because it optimizes the "second" node
# away from the graph.
# We exclude local_fill_to_alloc because it optimizes the "second" node away from the graph.
TestSecondSameRank
=
makeTester
(
name
=
"SecondSameRankTester"
,
op
=
second
,
expected
=
_numpy_second
,
good
=
dict
(
itertools
.
chain
(
multi_dtype_checks
((
4
,
5
),
(
4
,
5
)),
multi_dtype_checks
((
1
,
2
),
(
3
,
2
)),
multi_dtype_checks
((
3
,
2
),
(
1
,
2
)),
)
),
# These sizes are not broadcastable to one another
# and SHOULD raise an error, but currently don't.
good
=
dict
(
multi_dtype_checks
((
4
,
5
),
(
4
,
1
))),
bad_runtime
=
dict
(
itertools
.
chain
(
multi_dtype_checks
((
4
,
5
),
(
5
,
4
)),
multi_dtype_checks
((
1
,
5
),
(
5
,
4
)),
)
fail1
=
(
random
(
4
,
5
),
random
(
5
,
4
)),
fail2
=
(
integers
(
1
,
5
),
integers
(
5
,
4
)),
),
mode
=
get_default_mode
()
.
excluding
(
"local_fill_to_alloc"
,
"local_useless_fill"
),
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论