manupa-arm commented on a change in pull request #7398:
URL: https://github.com/apache/tvm/pull/7398#discussion_r576575065



##########
File path: tests/python/unittest/test_crt.py
##########
@@ -106,6 +105,20 @@ def test_compile_runtime():
         assert (C_data.asnumpy() == np.array([6, 7])).all()
 
 
[email protected]_micro
+def test_compile_runtime_llvm():
+    """Test targeting the on-device runtime with the llvm backend."""
+    global TARGET
+    old_target = TARGET
+    try:
+        TARGET = tvm.target.Target("llvm " + str(TARGET)[2:])

Review comment:
       Not very clear to me what is going on here ?
   I would imagine we would want to test both llvm and c targets, right ?
   May I ask why is the need for try-finally here?




----------------------------------------------------------------
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:
[email protected]


Reply via email to