mshr-h commented on code in PR #17857:
URL: https://github.com/apache/tvm/pull/17857#discussion_r2052143945


##########
python/tvm/relax/frontend/torch/fx_translator.py:
##########
@@ -422,6 +422,48 @@ def _lerp(self, node: fx.Node) -> relax.Var:
             relax.op.add(start, relax.op.multiply(weight, 
relax.op.subtract(end, start)))
         )
 
+    ########## Statistical ##########
+
+    def _norm(self, node: fx.Node) -> relax.Var:

Review Comment:
   Looks like this function is exactly the same as the `_linalg_vector_norm` in 
exported program frontend. Can we create a shared func between fx and exported 
program?



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