-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[FRONTEND][DARKNET]LSTM and GRU support #1576
Conversation
@PariksheetPinjari909 @srkreddy1238 @yzhliu could you please review this PR. |
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.
Others looks LGTM
nnvm/python/nnvm/frontend/darknet.py
Outdated
|
||
elif LAYERTYPE.GRU == layer.type: | ||
if layer.steps > 1: | ||
raise NotImplementedError("Currenty support only single step GRU") |
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.
pls correct spell.
nnvm/python/nnvm/frontend/darknet.py
Outdated
@@ -698,6 +703,123 @@ def _handle_darknet_rnn_layers(self, layer_num, sym): | |||
self._sym_array[layer_num] = sym | |||
processed = True | |||
|
|||
elif LAYERTYPE.LSTM == layer.type: | |||
if layer.steps > 1: | |||
raise NotImplementedError("Currenty support only single step GRU") |
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.
pls correct spell
@@ -395,4 +431,6 @@ def test_forward_activation_logistic(): | |||
test_forward_elu() | |||
test_forward_rnn() | |||
test_forward_crnn() | |||
test_forward_lstm() | |||
test_forward_gru() | |||
test_forward_activation_logistic() |
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.
add end line
0d26194
to
6697ca8
Compare
@PariksheetPinjari909 Thanks for the review. I updated the code. Please check again. TIA. |
Thanks @siju-samuel @PariksheetPinjari909 , this is now merged |
All the RNN operators are completed for Darknet
Thanks for contributing to TVM! Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from others in the community.