Closed
Description
Describe the issue:
The following tests fail with pytensor==2.18.0
:
=========================== short test summary info ============================
FAILED tests/test_printing.py::test_debugprint - AssertionError: assert ['Composite{(... └─ B', ...] == ['Composite{(... ...
FAILED tests/link/c/test_op.py::test_ExternalCOp_c_code_cache_version - ValueError: too many values to unpack (expected 3)
Reproducable code example:
Not relevant
Error message:
> assert [l.strip() for l in s.split("\n")] == [
l.strip() for l in exp_res.split("\n")
]
E AssertionError: assert ['Composite{(... └─ B', ...] == ['Composite{(... └─ B', ...]
E At index 2 diff: '│ └─ Gemv{inplace} d={0: [0]} 2' != '│ └─ CGemv{inplace} d={0: [0]} 2'
E Use -v to get more diff
tests/test_printing.py:301: AssertionError
------------------------
____________________ test_ExternalCOp_c_code_cache_version _____________________
def test_ExternalCOp_c_code_cache_version():
"""Make sure the C cache versions produced by `ExternalCOp` don't depend on `hash` seeding."""
with tempfile.NamedTemporaryFile(dir=".", suffix=".py") as tmp:
tmp.write(externalcop_test_code.encode())
tmp.seek(0)
# modname = os.path.splitext(tmp.name)[0]
modname = tmp.name
out_1, err = get_hash(modname, seed=428)
assert err is None
out_2, err = get_hash(modname, seed=3849)
assert err is None
> hash_1, msg, _ = out_1.decode().split("\n")
E ValueError: too many values to unpack (expected 3)
tests/link/c/test_op.py:230: ValueError
PyTensor version information:
Version 2.18.0
Context for the issue:
I am working on updating pytensor from 2.17.3 to 2.18.0 on nixpkgs.