From a4dd4c40cf2a86e3b68e754df3fb57ee0cd41f0f Mon Sep 17 00:00:00 2001 From: Double_V Date: Tue, 8 Jun 2021 15:09:10 +0800 Subject: [PATCH] add transpose transpose opdef (#33352) * add transpose transpose opdef, test=develop * add line, test=develop --- paddle/fluid/operators/compat/transpose.pdtxt | 52 ++++++++++++++++++ .../fluid/operators/compat/transpose2.pdtxt | 55 +++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 paddle/fluid/operators/compat/transpose.pdtxt create mode 100644 paddle/fluid/operators/compat/transpose2.pdtxt diff --git a/paddle/fluid/operators/compat/transpose.pdtxt b/paddle/fluid/operators/compat/transpose.pdtxt new file mode 100644 index 00000000000..97081e0afc2 --- /dev/null +++ b/paddle/fluid/operators/compat/transpose.pdtxt @@ -0,0 +1,52 @@ +type: "transpose" +def { + inputs { + name: "X" + } + outputs { + name: "Out" + } + attrs { + name: "axis" + type: INTS + } + attrs { + name: "data_format" + type: STRING + } +} +extra { + attrs { + name: "use_mkldnn" + type: BOOLEAN + } + attrs { + name: "use_quantizer" + type: BOOLEAN + } + attrs { + name: "mkldnn_data_type" + type: STRING + } + attrs { + name: "op_role" + type: INT + } + attrs { + name: "op_role_var" + type: STRINGS + } + attrs { + name: "op_namescope" + type: STRING + } + attrs { + name: "op_callstack" + type: STRINGS + } + attrs { + name: "op_device" + type: STRING + } +} + diff --git a/paddle/fluid/operators/compat/transpose2.pdtxt b/paddle/fluid/operators/compat/transpose2.pdtxt new file mode 100644 index 00000000000..34fad62a101 --- /dev/null +++ b/paddle/fluid/operators/compat/transpose2.pdtxt @@ -0,0 +1,55 @@ +type: "transpose" +def { + inputs { + name: "X" + } + outputs { + name: "Out" + } + attrs { + name: "axis" + type: INTS + } + attrs { + name: "data_format" + type: STRING + } +} +extra { + outputs { + name: "XShape" + } + attrs { + name: "use_mkldnn" + type: BOOLEAN + } + attrs { + name: "use_quantizer" + type: BOOLEAN + } + attrs { + name: "mkldnn_data_type" + type: STRING + } + attrs { + name: "op_role" + type: INT + } + attrs { + name: "op_role_var" + type: STRINGS + } + attrs { + name: "op_namescope" + type: STRING + } + attrs { + name: "op_callstack" + type: STRINGS + } + attrs { + name: "op_device" + type: STRING + } +} + -- GitLab