-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] Support custom GRU #11840
[DRAFT] Support custom GRU #11840
Conversation
This commit adds optimization for While operation by checking condition graph and don't run it. ONE-DCO-1.0-Signed-off-by: Artem Balyshev <[email protected]>
f5d27fa
to
e24b933
Compare
@BalyshevArtem Can we extend this to multiple GRU layer pattern like While-while-while-strideslice ? |
I think yes |
@BalyshevArtem Let's try to merge this PR into master. For this, we need to do :
|
@@ -46,6 +46,8 @@ class Module final | |||
public: | |||
void add(std::unique_ptr<loco::Graph> &&g); | |||
|
|||
void remove(size_t idx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make a copy of module without this idx
subgraph and replace it?
@@ -34,6 +34,7 @@ class CircleOptimizer final | |||
{ | |||
enum Algorithm | |||
{ | |||
FuseUnrolledGRUAsCustomGRU, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz add to bottom not on the top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, it is first draft, I will post new one with changes only in compiler
part.
This draft supports custom GRU, adds conversion in circle2cirlce as new pass, and adds new kernel in onert-micro
ONE-DCO-1.0-Signed-off-by: Artem Balyshev [email protected]