-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AutoTVM] Support range in index based tuners #4870
Conversation
@merrymercy could you help to review this PR? Thanks! |
return ret | ||
|
||
def __getstate__(self): | ||
return {"visited": self.counter} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this function return a list of visited config indices (i.e., self.visited
)? Then should we change __setstate__
accordingly to make it consistent?
f6a3a56
to
9cee1ab
Compare
9cee1ab
to
1acf051
Compare
@merrymercy I've removed |
Re-trigger CI since it failed with no sense. |
* Support range in index based tuners * Address comments * Remove __*state__ * trigger CI
* Support range in index based tuners * Address comments * Remove __*state__ * trigger CI
* Support range in index based tuners * Address comments * Remove __*state__ * trigger CI
This PR includes the following changes in order to let grid search and random tuner accept an index range. This is beneficial for distributed tuning since we can easily separate a tuning space to chunks and distribute them to different machines.
Note: This change will not affect any existing use cases of grid search tuner and random tuner.
Support
range_idx
optional argument when constructingGridSearchTuner
andRandomTuner
to let them only tune a part of the tuning space.Refactor
GridSearchTuner
andRandomTuner
to have a common base class calledIndexBaseTuner
.IndexBaseTuner
processesrange_idx
and unifies common fields such ascounter
.Improve
RandomTuner
to generate non-repetitive random indices in constant time without increasing memory usage.Unit tests.