heliqi commented on code in PR #14172:
URL: https://github.com/apache/tvm/pull/14172#discussion_r1133416546


##########
python/tvm/relay/frontend/paddlepaddle.py:
##########
@@ -400,6 +400,30 @@ def convert_conv2d_transpose(g, op, block):
     g.add_node(op.output("Output")[0], out)
 
 
+def convert_dist(g, op, block):
+    """Operator converter for dist."""
+
+    x = g.get_node(op.input("X")[0])
+    y = g.get_node(op.input("Y")[0])
+    z = _op.abs(_op.subtract(x, y))

Review Comment:
   Sorry, I saw p as z. 
   No problem here, but _op.abs(z) should no longer be used in the following 
code.



-- 
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]

Reply via email to