Commit d53a69f6 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

add lstm rewrite to program execution

parent 2ce55c6e
...@@ -16,11 +16,14 @@ void rewrite_rnn::apply(program& prog) const ...@@ -16,11 +16,14 @@ void rewrite_rnn::apply(program& prog) const
{ {
apply_vanilla_rnn(prog, ins); apply_vanilla_rnn(prog, ins);
} }
else if(ins->name() == "gru")
if(ins->name() == "gru")
{ {
apply_gru(prog, ins); apply_gru(prog, ins);
} }
else if(ins->name() == "lstm")
{
apply_lstm(prog, ins);
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment