You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "MayYouBeProsperous (via GitHub)" <gi...@apache.org> on 2023/04/12 08:37:23 UTC
[GitHub] [tvm] MayYouBeProsperous commented on a diff in pull request #14575: [Frontend][Paddle] [PaddlePaddle Hackathon 4]add attribute support for dropout/hard_sigmoid/pixel_shuffle
MayYouBeProsperous commented on code in PR #14575:
URL: https://github.com/apache/tvm/pull/14575#discussion_r1163809209
##########
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:
Done.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org