From my latest poking around with pytensor while trying to get a reproducible code that fails, I think that I found the culprit of the issue you’ve been running into. It isn’t the Gemv Op as I wrote before, it looks like it’s Ger_scipy. For some reason that Op actually stores the Fortran object as an attribute to call it later during perform. That makes the whole Op impossible to pickle and raises this criptic error. I’ll work on a fix to push up to pytensor. Once that happens, @terrycojones, we might ask you to rerun your code using a newer version of pytensor.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Can not pickle fortran object | 1 | 1773 | July 8, 2021 | |
| An error message about 'can't pickle fortran objects' | 18 | 6572 | November 23, 2021 | |
| AttributeError: Can't pickle local object 'Op.make_py_thunk..rval' while running pymc3 | 1 | 986 | June 29, 2018 | |
| Pytensor compilation error | 18 | 6236 | May 26, 2023 | |
| Bambi error: "cannot pickle 'fortran' object" | 5 | 1074 | November 24, 2022 |