From aec10c8ac44ca39b5266836392fb8173cc8960b1 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Wed, 20 Feb 2019 15:26:53 +0800 Subject: [PATCH] fix bug for conv2d_transpose --- tensorflow2fluid/src/paddle_emitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow2fluid/src/paddle_emitter.py b/tensorflow2fluid/src/paddle_emitter.py index 571e4e7..01aff33 100644 --- a/tensorflow2fluid/src/paddle_emitter.py +++ b/tensorflow2fluid/src/paddle_emitter.py @@ -666,9 +666,9 @@ class PaddleEmitter(object): k_shape = self.tensor_shape_to_list( kernel.get_attr("_output_shapes"))[0] - k_num, channel, k_h, k_w = k_shape + channel, k_num, k_h, k_w = k_shape if node.data_format == "NHWC": - k_h, k_w, channel, k_num = k_shape + k_h, k_w, k_num, channel = k_shape if strides[0] > k_h or strides[1] > k_w: raise Exception( -- GitLab