提交 33b5dab6 authored 作者: Frederic's avatar Frederic

fix compilation crash

上级 77a0eba2
...@@ -81,7 +81,7 @@ class CumsumOp(theano.Op): ...@@ -81,7 +81,7 @@ class CumsumOp(theano.Op):
%(fail)s; %(fail)s;
} }
// Because PyArray_CumSum returns a newly created reference on %(t)s. // Because PyArray_CumSum returns a newly created reference on %(t)s.
Py_XDECREF(%(t)s); Py_XDECREF(t);
} }
""" % locals() """ % locals()
else: else:
...@@ -103,7 +103,7 @@ class CumsumOp(theano.Op): ...@@ -103,7 +103,7 @@ class CumsumOp(theano.Op):
%(fail)s; %(fail)s;
} }
// Because PyArray_CumSum returns a newly created reference on %(t)s. // Because PyArray_CumSum returns a newly created reference on %(t)s.
Py_XDECREF(%(t)s); Py_XDECREF(t);
} }
""" % locals() """ % locals()
...@@ -203,7 +203,7 @@ class CumprodOp(theano.Op): ...@@ -203,7 +203,7 @@ class CumprodOp(theano.Op):
%(fail)s; %(fail)s;
} }
// Because PyArray_CumSum returns a newly created reference on %(t)s. // Because PyArray_CumSum returns a newly created reference on %(t)s.
Py_XDECREF(%(t)s); Py_XDECREF(t);
} }
""" % locals() """ % locals()
else: else:
...@@ -224,7 +224,7 @@ class CumprodOp(theano.Op): ...@@ -224,7 +224,7 @@ class CumprodOp(theano.Op):
%(fail)s; %(fail)s;
} }
// Because PyArray_CumSum returns a newly created reference on %(t)s. // Because PyArray_CumSum returns a newly created reference on %(t)s.
Py_XDECREF(%(t)s); Py_XDECREF(t);
} }
""" % locals() """ % locals()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论