提交 47bd0bb6 编写于 作者: S sweetsky0901

del printf

上级 8ba8237a
...@@ -42,7 +42,6 @@ __global__ void KernelUnpool2dMax(const int nthreads, ...@@ -42,7 +42,6 @@ __global__ void KernelUnpool2dMax(const int nthreads,
int out_offset = bidx * out_bsize + cidx * out_csize; int out_offset = bidx * out_bsize + cidx * out_csize;
int out_index = indices_data[i]; int out_index = indices_data[i];
PADDLE_ASSERT(out_index < (output_height * output_width)); PADDLE_ASSERT(out_index < (output_height * output_width));
printf("-------%d------[%f]\n", out_offset + out_index, input_data[i]);
output_data[out_offset + out_index] = input_data[i]; output_data[out_offset + out_index] = input_data[i];
} }
} }
......
...@@ -54,9 +54,6 @@ class TestUnpoolOp(OpTest): ...@@ -54,9 +54,6 @@ class TestUnpoolOp(OpTest):
self.outputs = {'Out': output.astype('float32')} self.outputs = {'Out': output.astype('float32')}
def test_check_output(self): def test_check_output(self):
print self.inputs['X']
print self.inputs['Y']
print self.outputs['Out']
self.check_output() self.check_output()
def test_check_grad(self): def test_check_grad(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册