vinx13 commented on code in PR #17184:
URL: https://github.com/apache/tvm/pull/17184#discussion_r1687160195


##########
python/tvm/relax/frontend/torch/fx_translator.py:
##########
@@ -550,7 +550,11 @@ def _flatten(self, node: fx.node.Node) -> relax.Var:
         return self.block_builder.emit(relax.op.reshape(x, new_shape))
 
     def _permute(self, node: fx.node.Node) -> relax.Var:
+        import torch  # type: ignore

Review Comment:
   this is already imported above



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