You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/03/27 01:04:16 UTC

[GitHub] [tvm] jwfromm commented on a change in pull request #7747: [Relay]Frontend][Onnx] Add a converter for ATen Nodes

jwfromm commented on a change in pull request #7747:
URL: https://github.com/apache/tvm/pull/7747#discussion_r602647038



##########
File path: tests/python/frontend/onnx/test_forward.py
##########
@@ -4278,6 +4278,33 @@ def test_wrong_input():
         relay.frontend.from_onnx(model, shape=wrong_shape_dict)
 
 
+def test_aten():
+    torch.set_grad_enabled(False)
+
+    def _convert_to_onnx(model, inputs):
+        file_name = "{}.onnx".format("aten_model")
+        torch.onnx.export(
+            model, inputs, file_name, export_params=True, verbose=False, opset_version=10
+        )

Review comment:
       I added `aten=True` which makes all nodes in the graph `aten` rather than just embedding_bag so I've also added a few extra converters to the dispatch.




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org