diff --git a/res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.recipe b/res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.recipe new file mode 100644 index 00000000000..9db0593c066 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.recipe @@ -0,0 +1,47 @@ +operand { + name: "ifm" + type: FLOAT32 + shape { dim: 1 dim: 0 dim: 0 dim: 5 } + shape_signature { dim: 1 dim: -1 dim: -1 dim: 5 } +} +operand { + name: "begin" + type: INT32 + shape { dim: 4 } + filler { tag: "explicit" arg: "0" arg: "0" arg: "0" arg: "0" } +} +operand { + name: "end" + type: INT32 + shape { dim: 4 } + filler { tag: "explicit" arg: "1" arg: "8" arg: "3" arg: "5" } +} +operand { + name: "strides" + type: INT32 + shape { dim: 4 } + filler { tag: "explicit" arg: "1" arg: "1" arg: "1" arg: "1" } +} +operand { + name: "ofm" + type: FLOAT32 + shape { dim: 1 dim: 0 dim: 0 dim: 5 } + shape_signature { dim: 1 dim: -1 dim: -1 dim: 5 } +} +operation { + type: "StridedSlice" + input: "ifm" + input: "begin" + input: "end" + input: "strides" + output: "ofm" + strided_slice_options { + begin_mask: 0 + end_mask: 0 + ellipsis_mask: 0 + new_axis_mask: 0 + shrink_axis_mask: 0 + } +} +input: "ifm" +output: "ofm" diff --git a/res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.rule b/res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.rule new file mode 100644 index 00000000000..eca45dc33f0 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.rule @@ -0,0 +1,6 @@ +# To check if the model is resized properly + +RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 + +RULE "IFM_SHAPE" $(tensor_shape ifm) '=' [1,10,10,5] +RULE "STRIDED_SLICE_SHAPE" $(tensor_shape ofm) '=' [1,8,3,5]