提交 0484e1e2 authored 作者: Virgile Andreani's avatar Virgile Andreani 提交者: Virgile Andreani

Merge list comprehensions

上级 6a0c00a7
...@@ -2461,8 +2461,8 @@ class TestArithmeticCast: ...@@ -2461,8 +2461,8 @@ class TestArithmeticCast:
with config.change_flags(cast_policy="numpy+floatX"): with config.change_flags(cast_policy="numpy+floatX"):
# We will test all meaningful combinations of # We will test all meaningful combinations of
# scalar and array operations. # scalar and array operations.
pytensor_args = list(map(eval, [f"pytensor_{c}" for c in combo])) pytensor_args = [eval(f"pytensor_{c}") for c in combo]
numpy_args = list(map(eval, [f"numpy_{c}" for c in combo])) numpy_args = [eval(f"numpy_{c}") for c in combo]
pytensor_arg_1 = pytensor_args[0](a_type) pytensor_arg_1 = pytensor_args[0](a_type)
pytensor_arg_2 = pytensor_args[1](b_type) pytensor_arg_2 = pytensor_args[1](b_type)
pytensor_dtype = op( pytensor_dtype = op(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论