jiangjiajun commented on code in PR #14575:
URL: https://github.com/apache/tvm/pull/14575#discussion_r1163528537
##########
python/tvm/relay/frontend/paddlepaddle.py:
##########
@@ -502,7 +502,9 @@ def convert_dropout(g, op, block):
"""Operator converter for dropout."""
x = g.get_node(op.input("X")[0])
- g.add_node(op.output("Out")[0], x)
+ dropout_prob = op.attr("dropout_prob")
+ out = _op.nn.dropout(x, dropout_prob)
+ g.add_node(op.output("Out")[0], out)
Review Comment:
There're two mode in dropout, refer
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Dropout_cn.html#dropout
for more details
--
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]