Skip to content
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

Merged
merged 3 commits into from
Aug 14, 2018

Conversation

siju-samuel
Copy link
Member

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.

@siju-samuel
Copy link
Member Author

@PariksheetPinjari909 @srkreddy1238 @yzhliu could you please review this PR.

Copy link
Contributor

@PariksheetPinjari909 PariksheetPinjari909 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Others looks LGTM


elif LAYERTYPE.GRU == layer.type:
if layer.steps > 1:
raise NotImplementedError("Currenty support only single step GRU")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls correct spell.

@@ -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")
Copy link
Contributor

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()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add end line

@siju-samuel
Copy link
Member Author

@PariksheetPinjari909 Thanks for the review. I updated the code. Please check again. TIA.

@tqchen tqchen merged commit 54a115e into apache:master Aug 14, 2018
@tqchen
Copy link
Member

tqchen commented Aug 14, 2018

Thanks @siju-samuel @PariksheetPinjari909 , this is now merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants