提交 6788c898 authored 作者: Melanie Ducoffe's avatar Melanie Ducoffe

class AllocEmpty

上级 facb53ae
...@@ -5522,7 +5522,7 @@ class AllocEmpty(gof.Op): ...@@ -5522,7 +5522,7 @@ class AllocEmpty(gof.Op):
for idx, sh in enumerate(shps): for idx, sh in enumerate(shps):
str +="dims[%(idx)s] =" \ str +="dims[%(idx)s] =" \
"((npy_intp) PyInt_AsLong((PyObject*)%(sh)s));\n" % locals() "((npy_intp) PyInt_AsLong((PyObject*)%(sh)s));\n" % locals()
# Validate that the output storage exists # Validate that the output storage exists
str += "if(%(out)s==NULL\n" % locals() str += "if(%(out)s==NULL\n" % locals()
for idx, sh in enumerate(shps): for idx, sh in enumerate(shps):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论