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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]