Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewZhaoLuo committed Jun 25, 2021
1 parent 41bd233 commit ccb9e4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2210,6 +2210,10 @@ class GRU(RNN):
def generate_gru(
cls, X_steps, H_t, W, R, B, linear_before_reset, f_act, g_act, W_dtype, backwards=False
):
"""Create an unrolled gru loop.
See https://github.com/onnx/onnx/blob/master/docs/Operators.md for math.
"""
h_list = []
seq_length = len(X_steps)
for i in range(seq_length):
Expand Down

0 comments on commit ccb9e4b

Please sign in to comment.