From 009a163cf69d267ed4029b4f77f6a74af0ca4593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=98=8E=E5=86=AC?= <78149749+winter-wang@users.noreply.github.com> Date: Tue, 15 Jun 2021 13:00:35 +0800 Subject: [PATCH] fix the op attrs error in conv2d pbtxt,test=develop (#33532) --- paddle/fluid/operators/compat/conv2d.pbtxt | 8 ++++---- paddle/fluid/operators/compat/conv2d_transpose.pbtxt | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/paddle/fluid/operators/compat/conv2d.pbtxt b/paddle/fluid/operators/compat/conv2d.pbtxt index 94073800f72..24f15098a8b 100644 --- a/paddle/fluid/operators/compat/conv2d.pbtxt +++ b/paddle/fluid/operators/compat/conv2d.pbtxt @@ -32,6 +32,10 @@ def { name: "dilations" type: INTS } + attrs { + name: "data_format" + type: STRING + } } extra { inputs { @@ -113,10 +117,6 @@ extra { name: "force_fp32_output" type: BOOLEAN } - attrs { - name: "data_format" - type: STRING - } attrs { name: "workspace_size_MB" type: INT diff --git a/paddle/fluid/operators/compat/conv2d_transpose.pbtxt b/paddle/fluid/operators/compat/conv2d_transpose.pbtxt index 7e3ecb22152..474043718e4 100644 --- a/paddle/fluid/operators/compat/conv2d_transpose.pbtxt +++ b/paddle/fluid/operators/compat/conv2d_transpose.pbtxt @@ -1,4 +1,4 @@ -type: "reduce_mean" +type: "conv2d_transpose" def { inputs { name: "Input" @@ -40,6 +40,10 @@ def { name: "padding_algorithm" type: STRING } + attrs { + name: "data_format" + type: STRING + } } extra { attrs { @@ -78,10 +82,6 @@ extra { name: "fuse_beta" type: FLOAT } - attrs { - name: "data_format" - type: STRING - } attrs { name: "workspace_size_MB" type: INT -- GitLab