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 2022/02/01 00:34:17 UTC

[GitHub] [tvm] comaniac commented on a change in pull request #10122: [CUDA] Support float16 erf,tan,atan

comaniac commented on a change in pull request #10122:
URL: https://github.com/apache/tvm/pull/10122#discussion_r796179904



##########
File path: tests/python/relay/test_op_level1.py
##########
@@ -98,12 +96,12 @@ def test_unary_op(self, target, dev, relay_op, ref_func, dtype):
 
         if ref_func is not None:
             data = np.random.rand(*shape).astype(dtype)
-            ref_res = ref_func(data)
+            ref_res = ref_func(data).astype(dtype)

Review comment:
       Note that even the data is float16, some reference functions (e.g., `scipy.special.erf`) still return results in float32.




-- 
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: commits-unsubscribe@tvm.apache.org

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