提交 3c0b51f1 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Remove debug printf

上级 c7ba692d
...@@ -4188,7 +4188,7 @@ class Join(Op): ...@@ -4188,7 +4188,7 @@ class Join(Op):
dtype=node.outputs[0].type.dtype) dtype=node.outputs[0].type.dtype)
def c_code_cache_version(self): def c_code_cache_version(self):
return (4,) return (5,)
def c_code(self, node, name, inputs, outputs, sub): def c_code(self, node, name, inputs, outputs, sub):
axis, tensors = inputs[0], inputs[1:] axis, tensors = inputs[0], inputs[1:]
...@@ -4209,7 +4209,6 @@ class Join(Op): ...@@ -4209,7 +4209,6 @@ class Join(Op):
copy_inputs_to_list = '\n'.join(copy_to_list) copy_inputs_to_list = '\n'.join(copy_to_list)
n = len(tensors) n = len(tensors)
khar = "printf(\"tensors_lens_sum: %d\", tensors_lens_sum);"
code = """ code = """
int axis = ((%(adtype)s *)PyArray_DATA(%(axis)s))[0]; int axis = ((%(adtype)s *)PyArray_DATA(%(axis)s))[0];
...@@ -4222,7 +4221,6 @@ class Join(Op): ...@@ -4222,7 +4221,6 @@ class Join(Op):
for(int i=0; i < %(n)s; i++){ for(int i=0; i < %(n)s; i++){
tensors_lens_sum += PyArray_DIM((PyArrayObject *)(PyList_GetItem(list, i)), axis); tensors_lens_sum += PyArray_DIM((PyArrayObject *)(PyList_GetItem(list, i)), axis);
} }
%(khar)s
tensors_lens_sum -= PyArray_DIM(%(non_empty_tensor)s, axis); tensors_lens_sum -= PyArray_DIM(%(non_empty_tensor)s, axis);
} }
if(%(view)s != -1 && tensors_lens_sum == 0) { if(%(view)s != -1 && tensors_lens_sum == 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论