From d7540a4a87d8023a84bbfcbc16bc488112360200 Mon Sep 17 00:00:00 2001 From: wenbin Date: Mon, 28 Nov 2022 10:36:41 +0800 Subject: [PATCH] add pbtxt (#48326) --- paddle/fluid/operators/compat/roll.pbtxt | 42 +++++++++++ .../operators/compat/strided_slice.pbtxt | 73 +++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 paddle/fluid/operators/compat/roll.pbtxt create mode 100644 paddle/fluid/operators/compat/strided_slice.pbtxt diff --git a/paddle/fluid/operators/compat/roll.pbtxt b/paddle/fluid/operators/compat/roll.pbtxt new file mode 100644 index 0000000000..a0e6a0e208 --- /dev/null +++ b/paddle/fluid/operators/compat/roll.pbtxt @@ -0,0 +1,42 @@ +type: "roll" +def { + inputs { + name: "X" + } + inputs { + name: "ShiftsTensor" + } + outputs { + name: "Out" + } + attrs { + name: "axis" + type: INTS + } + attrs { + name: "shifts" + type: INTS + } +} +extra { + 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/strided_slice.pbtxt b/paddle/fluid/operators/compat/strided_slice.pbtxt new file mode 100644 index 0000000000..174b8cecb5 --- /dev/null +++ b/paddle/fluid/operators/compat/strided_slice.pbtxt @@ -0,0 +1,73 @@ +type: "strided_slice" +def { + inputs { + name: "Input" + } + inputs { + name: "StartsTensor" + } + inputs { + name: "EndsTensor" + } + inputs { + name: "StridesTensor" + } + inputs { + name: "StartsTensorList" + } + inputs { + name: "EndsTensorList" + } + inputs { + name: "StridesTensorList" + } + outputs { + name: "Out" + } + attrs { + name: "axes" + type: INTS + } + attrs { + name: "starts" + type: INTS + } + attrs { + name: "ends" + type: INTS + } + attrs { + name: "strides" + type: INTS + } + attrs { + name: "infer_flags" + type: INTS + } + attrs { + name: "decrease_axis" + type: INTS + } +} +extra { + 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