diff --git a/paddle/fluid/operators/compat/conv2d.pbtxt b/paddle/fluid/operators/compat/conv2d.pbtxt index 94073800f7246..24f15098a8b9e 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 7e3ecb22152b5..474043718e4f9 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