diff --git a/paddle/fluid/operators/compat/roll.pbtxt b/paddle/fluid/operators/compat/roll.pbtxt new file mode 100644 index 0000000000000000000000000000000000000000..a0e6a0e2082810861dbb6a78df79d9a40ecf5259 --- /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 0000000000000000000000000000000000000000..174b8cecb59b89abdc37ac26b91de179f8c4147e --- /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 + } +}