heliqi commented on code in PR #14172:
URL: https://github.com/apache/tvm/pull/14172#discussion_r1133414623
##########
python/tvm/relay/frontend/paddlepaddle.py:
##########
@@ -514,6 +582,27 @@ def convert_expand_as(g, op, block):
g.add_node(op.output("Out")[0], out)
+def convert_eye(g, op, block):
+ """Operator converter for eye."""
+
+ num_rows = op.attr("num_rows")
+ num_columns = op.attr("num_columns")
Review Comment:
We should look at the c++ definition and implementation of op rather than
the api.
The Paddle to TVM conversion is an op mapping rather than an api.
https://github.com/PaddlePaddle/Paddle/blob/b780a3ff4f89f73f4efd095002b320a5fe673afe/paddle/phi/kernels/impl/eye_kernel_impl.h#L44
--
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]