class_docstr: A monitor to collect statistic during tuning
class_docstr_tok: ["A","monitor","to","collect","statistic","during","tuning"]
code: def __call__(self, tuner, inputs, results):
      for inp, res in zip(inputs, results):
          if res.error_no == 0:
              flops = inp.task.flop / np.mean(res.costs)
              self.scores.append(flops)
          else:
              self.scores.append(0)
  
          self.timestamps.append(res.timestamp)
  
file_path: tvm/python/tvm/autotvm/tuner/callback.py
imports: import sys
  import time
  import logging
  import numpy
  from ..None import record
  from ..utils import format_si_prefix
label_desc: Use image node_id 2 for calling the Monitor obj's underlying member method code with example usage: obj.__call__(tuner, inputs, results) without return types