diff --git a/res/TensorFlowLiteRecipes/Inf_FullyConnected_000/test.recipe b/res/TensorFlowLiteRecipes/Inf_FullyConnected_000/test.recipe new file mode 100644 index 00000000000..e42fbcd9775 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_FullyConnected_000/test.recipe @@ -0,0 +1,45 @@ +operand { + name: "ifm" + type: FLOAT32 + shape { dim: 1 dim: 2 dim: 3 } + shape_signature { dim: -1 dim: 2 dim: 3} +} +operand { + name: "weight" + type: FLOAT32 + shape { dim: 4 dim: 3 } + filler { + tag: "gaussian" + arg: "0.0" + arg: "1.0" + } +} +operand { + name: "bias" + type: FLOAT32 + shape { dim: 4 } + filler { + tag: "gaussian" + arg: "0.0" + arg: "1.0" + } +} +operand { + name: "ofm" + type: FLOAT32 + shape { dim: 1 dim: 4 } + shape_signature { dim: -1 dim: 4 } +} +operation { + type: "FullyConnected" + fullyconnected_options { + activation: NONE + keep_num_dims: false + } + input: "ifm" + input: "weight" + input: "bias" + output: "ofm" +} +input: "ifm" +output: "ofm" diff --git a/res/TensorFlowLiteRecipes/Inf_FullyConnected_000/test.rule b/res/TensorFlowLiteRecipes/Inf_FullyConnected_000/test.rule new file mode 100644 index 00000000000..85172f18056 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_FullyConnected_000/test.rule @@ -0,0 +1,5 @@ +# To check if dynamic dimension properly inferred + +RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 + +RULE "FC_SHAPE" $(tensor_shape ofm) '=' [-1,4] diff --git a/res/TensorFlowLiteRecipes/Inf_FullyConnected_001/test.recipe b/res/TensorFlowLiteRecipes/Inf_FullyConnected_001/test.recipe new file mode 100644 index 00000000000..e66d279d86e --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_FullyConnected_001/test.recipe @@ -0,0 +1,45 @@ +operand { + name: "ifm" + type: FLOAT32 + shape { dim: 1 dim: 2 dim: 3 } + shape_signature { dim: -1 dim: 2 dim: 3} +} +operand { + name: "weight" + type: FLOAT32 + shape { dim: 4 dim: 3 } + filler { + tag: "gaussian" + arg: "0.0" + arg: "1.0" + } +} +operand { + name: "bias" + type: FLOAT32 + shape { dim: 4 } + filler { + tag: "gaussian" + arg: "0.0" + arg: "1.0" + } +} +operand { + name: "ofm" + type: FLOAT32 + shape { dim: 1 dim: 2 dim: 4 } + shape_signature { dim: -1 dim: 2 dim: 4 } +} +operation { + type: "FullyConnected" + fullyconnected_options { + activation: NONE + keep_num_dims: true + } + input: "ifm" + input: "weight" + input: "bias" + output: "ofm" +} +input: "ifm" +output: "ofm" diff --git a/res/TensorFlowLiteRecipes/Inf_FullyConnected_001/test.rule b/res/TensorFlowLiteRecipes/Inf_FullyConnected_001/test.rule new file mode 100644 index 00000000000..19fdc69e878 --- /dev/null +++ b/res/TensorFlowLiteRecipes/Inf_FullyConnected_001/test.rule @@ -0,0 +1,5 @@ +# To check if dynamic dimension properly inferred + +RULE "VERIFY_FILE_FORMAT" $(verify_file_format) '=' 1 + +RULE "FC_SHAPE" $(tensor_shape ofm) '=' [-1,2,4]