Skip to content

Commit

Permalink
[res] Introduce FullyConnected_I4_002 (Samsung#12821)
Browse files Browse the repository at this point in the history
This will introduce tflite recipe FullyConnected_I4_002 for e2e INT4 value test.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark authored Apr 3, 2024
1 parent deac4e1 commit 42f1b38
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
3 changes: 3 additions & 0 deletions res/TensorFlowLiteRecipes/FullyConnected_I4_002/ref.input0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2,4
float32
0.45845914,0.59502566,0.012643684,0.9902574,0.083512,0.06890562,0.49019852,0.56146705
3 changes: 3 additions & 0 deletions res/TensorFlowLiteRecipes/FullyConnected_I4_002/ref.output0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2,4
float32
-11.873346,-3.6393948,4.5945563,12.828507,-5.9188657,-1.0911331,3.7365992,8.564331
44 changes: 44 additions & 0 deletions res/TensorFlowLiteRecipes/FullyConnected_I4_002/test.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
operand {
name: "in"
type: FLOAT32
shape { dim: 2 dim: 4 }
}
operand {
name: "weight"
type: INT4
shape { dim: 4 dim: 4 }
filler {
tag: "explicit"
arg: "-8" arg: "-7" arg: "-6" arg: "-5"
arg: "-4" arg: "-3" arg: "-2" arg: "-1"
arg: "0" arg: "1" arg: "2" arg: "3"
arg: "4" arg: "5" arg: "6" arg: "7"
}
quant { min: -8 max: 7 scale: 1.0 zero_point: 0 }
}
operand {
name: "bias"
type: FLOAT32
shape { dim: 4 }
filler {
tag: "explicit"
arg: "1.0" arg: "1.0" arg: "1.0" arg: "1.0"
}
}
operand {
name: "out"
type: FLOAT32
shape { dim: 2 dim: 4 }
}
operation {
type: "FullyConnected"
fullyconnected_options {
activation: NONE
}
input: "in"
input: "weight"
input: "bias"
output: "out"
}
input: "in"
output: "out"

0 comments on commit 42f1b38

Please sign in to comment.