Skip to content

Commit

Permalink
[res] Add TensorFlowLiteRecipes for broadcast Add (#14559)
Browse files Browse the repository at this point in the history
Let's add 4 recipes for broadcast Add.

ONE-DCO-Signed-off-by: Dayoung Lee <[email protected]>
  • Loading branch information
dayo09 authored Jan 16, 2025
1 parent e8c43b8 commit ea5097a
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 0 deletions.
33 changes: 33 additions & 0 deletions res/TensorFlowLiteRecipes/Add_003/test.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
operand {
name: "ifm1"
type: FLOAT32
shape { dim: 4 dim: 2 dim: 2 dim: 3 }
}
operand {
name: "ifm2"
type: FLOAT32
shape { dim: 4 dim: 2 dim: 2 dim: 1 }
filler {
tag: "explicit"
arg: "1" arg: "2" arg: "-3" arg: "-4"
arg: "5" arg: "6" arg: "-7" arg: "-8"
arg: "11" arg: "2" arg: "-13" arg: "-4"
arg: "1" arg: "12" arg: "-3" arg: "-14"
}
}
operand {
name: "ofm"
type: FLOAT32
shape { dim: 4 dim: 2 dim: 2 dim: 3 }
}
operation {
type: "Add"
input: "ifm1"
input: "ifm2"
output: "ofm"
add_options {
activation: NONE
}
}
input: "ifm1"
output: "ofm"
Empty file.
30 changes: 30 additions & 0 deletions res/TensorFlowLiteRecipes/Add_004/test.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
operand {
name: "ifm1"
type: FLOAT32
shape { dim: 1 dim: 2 dim: 2 dim: 3 }
}
operand {
name: "ifm2"
type: FLOAT32
shape { dim: 1 dim: 2 dim: 2 dim: 1 }
filler {
tag: "explicit"
arg: "1" arg: "2" arg: "-3" arg: "-1"
}
}
operand {
name: "ofm"
type: FLOAT32
shape { dim: 1 dim: 2 dim: 2 dim: 3 }
}
operation {
type: "Add"
input: "ifm1"
input: "ifm2"
output: "ofm"
add_options {
activation: NONE
}
}
input: "ifm1"
output: "ofm"
Empty file.
30 changes: 30 additions & 0 deletions res/TensorFlowLiteRecipes/Add_005/test.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
operand {
name: "ifm1"
type: FLOAT32
shape { dim: 2 dim: 2 dim: 3 }
}
operand {
name: "ifm2"
type: FLOAT32
shape { dim: 2 dim: 2 dim: 1 }
filler {
tag: "explicit"
arg: "1" arg: "2" arg: "-3" arg: "-1"
}
}
operand {
name: "ofm"
type: FLOAT32
shape { dim: 2 dim: 2 dim: 3 }
}
operation {
type: "Add"
input: "ifm1"
input: "ifm2"
output: "ofm"
add_options {
activation: NONE
}
}
input: "ifm1"
output: "ofm"
Empty file.
30 changes: 30 additions & 0 deletions res/TensorFlowLiteRecipes/Add_006/test.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
operand {
name: "ifm1"
type: FLOAT32
shape { dim: 4 dim: 4}
}
operand {
name: "ifm2"
type: FLOAT32
shape { dim: 4 dim: 1}
filler {
tag: "explicit"
arg: "1" arg: "2" arg: "-3" arg: "-4"
}
}
operand {
name: "ofm"
type: FLOAT32
shape { dim: 4 dim: 4}
}
operation {
type: "Add"
input: "ifm1"
input: "ifm2"
output: "ofm"
add_options {
activation: NONE
}
}
input: "ifm1"
output: "ofm"
Empty file.

0 comments on commit ea5097a

Please sign in to comment.