提交 2fd2c968 authored 作者: Melanie Ducoffe's avatar Melanie Ducoffe

class AllocEmpty

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