Skip to content

Commit

Permalink
[res] Add a CircleRecipe for GRU (#12785)
Browse files Browse the repository at this point in the history
This pr adds a CircleRecipe for GRU op.

ONE-DCO-1.0-Signed-off-by: Artem Balyshev <[email protected]>
  • Loading branch information
BalyshevArtem authored Mar 22, 2024
1 parent 6055e30 commit 406cb3a
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions res/CircleRecipes/GRU_000/test.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
operand {
name: "ifm"
type: FLOAT32
shape { dim: 3 dim: 1 dim: 2 }
}
operand {
name: "hidden_hidden"
type: FLOAT32
shape { dim: 12 dim: 4 }
filler {
tag: "gaussian"
arg: "0.0"
arg: "1.0"
}
}
operand {
name: "hidden_hidden_bias"
type: FLOAT32
shape { dim: 12 }
filler {
tag: "gaussian"
arg: "0.0"
arg: "1.0"
}
}
operand {
name: "hidden_input"
type: FLOAT32
shape { dim: 12 dim: 2 }
filler {
tag: "gaussian"
arg: "0.0"
arg: "1.0"
}
}
operand {
name: "hidden_input_bias"
type: FLOAT32
shape { dim: 12 }
filler {
tag: "gaussian"
arg: "0.0"
arg: "1.0"
}
}
operand {
name: "state"
type: FLOAT32
shape { dim: 1 dim: 4 }
filler {
tag: "gaussian"
arg: "0.0"
arg: "1.0"
}
}
operand {
name: "ofm"
type: FLOAT32
shape { dim: 1 dim: 1 dim: 4 }
}
operation {
type: "GRU"
gru_options {
activation: NONE
return_sequences: false
time_major: false
}
input: "ifm"
input: "hidden_hidden"
input: "hidden_hidden_bias"
input: "hidden_input"
input: "hidden_input_bias"
input: "state"
output: "ofm"
}
input: "ifm"
output: "ofm"
Empty file.

0 comments on commit 406cb3a

Please sign in to comment.