提交 5363df2d authored 作者: Frederic Bastien's avatar Frederic Bastien

Revert "Force the dtype to use to try to fix dtype problem on Windows"

This reverts commit 4997e989.
上级 6f97e51d
......@@ -1935,7 +1935,7 @@ class AdvancedIncSubtensor1(Op):
# max_depth: we pass 0 to have this parameter ignored
# requirements: here we pass NPY_ARRAY_ENSURECOPY to force a copy
# context: this is almost always NULL, I'm not sure what it's used for
return """(PyArrayObject*)PyArray_FromAny(py_%(x)s, PyArray_DTYPE(%(x)s), 0, 0,
return """(PyArrayObject*)PyArray_FromAny(py_%(x)s, NULL, 0, 0,
NPY_ARRAY_ENSURECOPY, NULL)""" % locals()
def c_support_code(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论