-
Notifications
You must be signed in to change notification settings - Fork 463
Fix LSTM pattern matching for version between 1.15.0 and 2.x. #913
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
Conversation
| ]), | ||
| ]), | ||
| ]) | ||
|
|
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.
Any UT that can be re/activated to check if this new pattern is working as expected? -- or are the current tests already sufficient?
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.
Current cases in test_lstm.py already covering it.
I have enabled check_lstm_count(...) in common.py to capture issues.
| ]), | ||
| ]) | ||
|
|
||
| xc_pattern_optimized = \ |
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.
why is the name _optimized ?
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.
@guschmue :
My understanding is for tf >= 1.15.0 when bias is all zero, "BiasAdd" will be optimized to "Identity" by tf optimizer, hence the name.
A tentative fix with trivial change to match LSTM for version between 1.15.0 and 2.x.
Addressing issue #861