Skip to content

Commit

Permalink
[MetaSchedule] Added a cost model (apache#11961)
Browse files Browse the repository at this point in the history
In this PR, I added a cost model based on SegmentSum MLP, which can be used for pre-training or integration with TVM.
  • Loading branch information
Kathryn-cat authored and masahi committed Jul 15, 2022
1 parent ca14468 commit 77d2ee2
Show file tree
Hide file tree
Showing 3 changed files with 1,012 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/tvm/meta_schedule/cost_model/cost_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def update(
raise NotImplementedError

def predict(self, context: TuneContext, candidates: List[MeasureCandidate]) -> np.ndarray:
"""Update the cost model given running results.
"""Predict given the measure candidates.
Parameters
----------
Expand Down
Loading

0 comments on commit 77d2ee2

Please sign in to comment.