-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
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
| 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?Metadata
Metadata
Assignees
Labels
No labels