masahi commented on a change in pull request #8781:
URL: https://github.com/apache/tvm/pull/8781#discussion_r693627752
##########
File path: python/tvm/relay/frontend/common.py
##########
@@ -658,6 +658,92 @@ def unbind(data, axis=0):
return _expr.TupleWrapper(_expr.Tuple(ret), selections)
+def gru_cell(
+ input_seqs,
+ hidden_state,
+ w_inp,
+ w_hid,
+ b_inp=None,
+ b_hid=None,
+ rz_act=_op.sigmoid,
+ n_act=_op.tanh,
+ backwards=False,
+ linear_before_reset=True,
+):
+ """
+ Common implementation of GRU cell for all frontends of TVM
+ TODO(vvchernov): currently it is used by pytorch. Extend for other
frontends
Review comment:
Also used by ONNX?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]