Hi, when I tune tensorcore schedules, I often hit this error. The error happens when feature_len
below is None
. Since this is a non-recoverable error and I don’t see an obvious workaround, I’m completely blocked from tuning some of my models
File "/home/masa/projects/dev/tvm/python/tvm/autotvm/tuner/xgboost_tuner.py", line 105, in tune
super(XGBTuner, self).tune(*args, **kwargs)
File "/home/masa/projects/dev/tvm/python/tvm/autotvm/tuner/tuner.py", line 169, in tune
self.update(inputs, results)
File "/home/masa/projects/dev/tvm/python/tvm/autotvm/tuner/model_based_tuner.py", line 291, in update
maximums = self.model_optimizer.find_maximums(
File "/home/masa/projects/dev/tvm/python/tvm/autotvm/tuner/sa_model_optimizer.py", line 89, in find_maximums
scores = model.predict(points)
File "/home/masa/projects/dev/tvm/python/tvm/autotvm/tuner/xgboost_cost_model.py", line 295, in predict
feas = self._get_feature(xs)
File "/home/masa/projects/dev/tvm/python/tvm/autotvm/tuner/xgboost_cost_model.py", line 338, in _get_feature
ret = np.empty((len(indexes), feature_len), dtype=np.float32)
TypeError: 'NoneType' object cannot be interpreted as an integer
Apparently, tuning tensorcore schedules often end up generating invalid schedules, and in the worst case, I hit this error.
Has anybody seen this? Is there a workaround?