There is a small bug in `ConfigSpace` where if `__repr__` is invoked before the 
config has finished collecting knobs / spaces, subsequently collected items 
will not count towards the size of the whole config space which will result in 
an incomplete run of autotuning.
This is due to the caching compute of the config space 
[here](https://github.com/apache/incubator-tvm/blob/e59c603515befb02035e237794aa0645dbfbaf09/python/tvm/autotvm/task/space.py#L839).

The most straightforward fix would be something like this:

    if self._length is None or self._collect:
         self._length = int(np.prod([len(x) for x in self.space_map.values()]))
     return self._length





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/small-config-bug-in-autotvm/8285/1) to 
respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/7a87432be66aea91842e0814a76841c7dfb1c1aa1e339de36e0f4ecc879a3d75).

Reply via email to