MargaretQian commented on code in PR #11171:
URL: https://github.com/apache/tvm/pull/11171#discussion_r862250125


##########
python/tvm/runtime/ndarray.py:
##########
@@ -218,6 +218,8 @@ def numpy(self):
             dtype = str(t)
         if dtype == "int4":
             dtype = "int8"
+        if dtype == "bfloat16":
+            dtype = "uint16"

Review Comment:
   the expected type in the onnx output is `uint16`, which is why I matched 
that 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to