t-vi commented on a change in pull request #5756:
URL: https://github.com/apache/incubator-tvm/pull/5756#discussion_r437645637



##########
File path: python/tvm/relay/expr.py
##########
@@ -487,6 +487,8 @@ def const(value, dtype=None):
     - bool maps to "bool"
     - other using the same default rule as numpy.
     """
+    if dtype == 'float': # for numpy, float is float64, for us it is float32
+        dtype = 'float32'

Review comment:
       It didn't seem natural to me because L496-502 deal with `dtype is None`.




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