Kathryn-cat commented on code in PR #11622:
URL: https://github.com/apache/tvm/pull/11622#discussion_r894045639
##########
src/meta_schedule/tune_context.cc:
##########
@@ -70,6 +70,82 @@ void TuneContextNode::Initialize() {
}
}
+void TuneContextNode::_GenerateMeasureCandidates() {
+ ICHECK(this->search_strategy.defined());
+ this->measure_candidates =
this->search_strategy.value()->GenerateMeasureCandidates();
+}
+
+void TuneContextNode::_SendToBuilder(const Builder& builder) {
+ Array<MeasureCandidate> candidates = this->measure_candidates.value();
Review Comment:
It might be helpful to add a function for manually adding
`measure_candidates`, since sometimes the field is empty after running search
algorithms.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]