Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.recipe
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 6 additions & 0 deletions res/TensorFlowLiteRecipes/Inf_StridedSlice_002/test.rule
Original file line number Diff line number Diff line change
@@ -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]