From 4422a556dca7c9461dd7fdcf91b96a3e429aaf66 Mon Sep 17 00:00:00 2001 From: gongweibao Date: Tue, 17 Oct 2017 12:46:33 +0000 Subject: [PATCH] rm not need --- .../framework/tests/test_block_expand_op.py | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/python/paddle/v2/framework/tests/test_block_expand_op.py b/python/paddle/v2/framework/tests/test_block_expand_op.py index c85f3a1ef..4c66493d6 100644 --- a/python/paddle/v2/framework/tests/test_block_expand_op.py +++ b/python/paddle/v2/framework/tests/test_block_expand_op.py @@ -27,14 +27,12 @@ def get_output_shape(attrs, x): return outputHeight, outputWidth -""" -im: {CHW} -col: - {outputHeight, outputWidth, inputChannels, filterHeight, filterWidth} -""" - - def im2col(attrs, im, col): + """ + im: {CHW} + col: + {outputHeight, outputWidth, inputChannels, filterHeight, filterWidth} + """ input_channels = im.shape[0] inputHeight = im.shape[1] inputWidth = im.shape[2] @@ -74,14 +72,12 @@ def im2col(attrs, im, col): im_row_offset][im_col_offset] -""" -img: {CHW} -col: - {outputHeight, outputWidth, inputChannels, filterHeight, filterWidth} -""" - - def col2img(attrs, col, img): + """ + img: {CHW} + col: + {outputHeight, outputWidth, inputChannels, filterHeight, filterWidth} + """ input_channels = im.shape[0] inputHeight = im.shape[1] inputWidth = im.shape[2] @@ -154,13 +150,11 @@ class TestBlockExpandOp(OpTest): attrs['blockHeight'], attrs['blockWidth']) } - """ def test_check_output(self): self.check_output() - """ def test_check_grad_normal(self): - self.check_grad(['X'], 'Out', max_relative_error=0.01) + self.check_grad(['X'], 'Out') if __name__ == '__main__': -- GitLab