comaniac opened a new pull request #8984: URL: https://github.com/apache/tvm/pull/8984
#8478 added `.value` to the use of `cur_score`. However, its type may not be a TVM primitive but a numpy value. In this case, we will encounter the following error: ``` total_latency_str = "%.3f" % (task_scheduler.cur_score.value * 1e3) AttributeError: 'numpy.float64' object has no attribute 'value ``` Although I cannot find the reason why `cur_score` would be a TVM primitive, I make sure its producer `_compute_score` returns a native/numpy value in this PR. cc @echuraev @jcf94 -- 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]
