Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pytensor/link/c/c_code/lazylinker_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static PyObject *pycall(CLazyLinker *self, Py_ssize_t node_idx, int verbose) {
double t0 = pytime(NULL);
if (verbose)
fprintf(stderr, "calling via Python (node %i)\n", (int)node_idx);
rval = PyObject_CallObject(thunk, NULL);
rval = PyObject_CallNoArgs(thunk);
if (rval) {
double t1 = pytime(NULL);
double ti = PyFloat_AsDouble(PyList_GetItem(self->call_times, node_idx));
Expand All @@ -491,7 +491,7 @@ static PyObject *pycall(CLazyLinker *self, Py_ssize_t node_idx, int verbose) {
if (verbose) {
fprintf(stderr, "calling via Python (node %i)\n", (int)node_idx);
}
rval = PyObject_CallObject(thunk, NULL);
rval = PyObject_CallNoArgs(thunk);
}
return rval;
}
Expand Down Expand Up @@ -981,7 +981,7 @@ static PyTypeObject lazylinker_ext_CLazyLinkerType = {
};

static PyObject *get_version(PyObject *dummy, PyObject *args) {
PyObject *result = PyFloat_FromDouble(0.3);
PyObject *result = PyFloat_FromDouble(0.31);
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion pytensor/link/c/lazylinker_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
_logger = logging.getLogger(__file__)

force_compile = False
version = 0.3 # must match constant returned in function get_version()
version = 0.31 # must match constant returned in function get_version()
lazylinker_ext: ModuleType | None = None


Expand Down