areusch commented on a change in pull request #5417:
URL: https://github.com/apache/incubator-tvm/pull/5417#discussion_r416140211
##########
File path: python/tvm/autotvm/tuner/callback.py
##########
@@ -144,12 +144,12 @@ def __del__(self):
def _callback(tuner, inputs, results):
ctx.ct += len(inputs)
- flops = 0
+ flops = float("inf")
Review comment:
reverted, this was cruft that snuck in
##########
File path: python/tvm/autotvm/tuner/callback.py
##########
@@ -144,12 +144,12 @@ def __del__(self):
def _callback(tuner, inputs, results):
ctx.ct += len(inputs)
- flops = 0
+ flops = float("inf")
for inp, res in zip(inputs, results):
if res.error_no == 0:
- flops = inp.task.flop / np.mean(res.costs)
+ flops = min(inp.task.flop / np.mean(res.costs), flops)
Review comment:
reverted
----------------------------------------------------------------
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]