Skip to content

Commit

Permalink
[MetaSchedule] Added a cost model
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathryn-cat committed Jul 11, 2022
1 parent ce8f6d1 commit ee752d0
Show file tree
Hide file tree
Showing 4 changed files with 1,017 additions and 2 deletions.
5 changes: 5 additions & 0 deletions python/tvm/meta_schedule/cost_model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@
from .cost_model import CostModel, PyCostModel
from .random_model import RandomModel
from .xgb_model import XGBModel

try:
from .mlp_model import MLPModel # type: ignore
except ImportError:
pass
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 ee752d0

Please sign in to comment.