Hi, @jansel, I've been looking through your manipulator code, and stuck on these lines:
|
if self.is_integer_type(): |
|
# account for rounding |
|
low -= 0.4999 |
|
high += 0.4999 |
Could you please explain this strange rounding?
What is 0.4999 const (why not 0.5)?
Also, isn't it possible that we will go beyond the allowed range (because we rounding
low to the floor and
high to the ceil)?
And if we check, that
low and
high are integrals (
self.is_integer_type), why is this rounding needed at all?
Hi, @jansel, I've been looking through your manipulator code, and stuck on these lines:
opentuner/opentuner/search/manipulator.py
Lines 477 to 480 in 070c5ce
Could you please explain this strange rounding?
What is 0.4999 const (why not 0.5)?
Also, isn't it possible that we will go beyond the allowed range (because we rounding
lowto the floor andhighto the ceil)?And if we check, that
lowandhighare integrals (self.is_integer_type), why is this rounding needed at all?