-
Notifications
You must be signed in to change notification settings - Fork 117
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
[Converter] Support GRU operator conversion with separated_rnn_gate_calc=False #323
Conversation
Solved. |
Further optimization such as removing duplicate code & first time stamp Wh is on the way. |
@peterjc123 cc |
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.
Looks good, just some minor points
ops.append(tfl.FullyConnectedOperator([t, w_i, b_i], [input_mm])) | ||
input_mm_list.append(input_mm) | ||
ops.append(tfl.FullyConnectedOperator([h, w_h, b_h], [hidden_mm])) |
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.
This can be optimized if h
is a constant. Let's do this in a follow-up PR.
Some duplicate codes can be removed. But the most serious thing is to find out why all pytests failed with hints below:
AssertionError: The values for attribute 'shape' do not match: torch.Size([9, 1, 20]) != torch.Size([9, 0, 20]).
i.e. You can run python converter_op_test.py -k test_gru_no_bias
Generated TFLite looks fine and Help wanted!