Closed leslie-fang-intel closed 1 year ago
This almost looks like it didn't run for long enough since self.search_driver.best_result
is None, how many iterations is this?
Hi thanks for the reply. Yes, I think so. It‘ only 2 iterations. But since we only use the total tune time as limitation. For a large problem or on a system which running slow, we may get small tuning iterations, is there a way to avoid this error from happening?
Or in practical, at least how many iterations should we set to avoid this problem?
It depends on the search algorithm, many require some warmup iterations. If you set iterations to 100 or 1000 does it fix the problem?
You could make this error go away by adding an if self.search_driver.best_result is not None
around the error line (and the one after), but the tuning run will still have found no result.
Yes, a longer iterations will not see this problem. So I think I need to add some try...catch...
flow to handle the case when self.search_driver.best_result is None
.
We find when we short the tuning steps in
examples/py_api/api_example.py
, for example, from default500
to2
. We will get error inapi.finish
as error message:@jansel Could you help to take a look? BTW: we are using the latest commit of opentuner as
05e2d6b953
.