Skip to content

Commit

Permalink
[autotvm] fix typos in comment (apache#4591)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyc-ruiker authored and zhiics committed Dec 31, 2019
1 parent cf6d99a commit 201d305
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/tvm/autotvm/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def filter(self, func):
Examples
--------
get records for a target
>>> db.filter(lambda inp, resulst: "cuda" in inp.target.keys)
>>> db.filter(lambda inp, results: "cuda" in inp.target.keys)
get records with errors
>>> db.filter(lambda inp, results: any(r.error_no != 0 for r in results))
"""
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/autotvm/tophub.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def load_reference_log(backend, model, workload_name, template_key):
if model == inp.target.model:
find = True
break
# if device model is not find, use the device model with the most tuned worklaods
# if device model is not find, use the device model with the most tuned workloads
if not find and counts:
model = max(counts.items(), key=lambda k: k[1])[0]

Expand Down
2 changes: 1 addition & 1 deletion python/tvm/autotvm/tuner/xgboost_cost_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class XGBoostCostModel(CostModel):
'itervar' is more accurate but 'knob' is much faster.
There are some constraints on 'itervar', if you meet
problems with feature extraction when using 'itervar',
you can swith to 'knob'.
you can switch to 'knob'.
For cross-shape tuning (e.g. many convolutions with different shapes),
'itervar' and 'curve' has better transferability,
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/autotvm/tuner/xgboost_tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class XGBTuner(ModelBasedTuner):
'itervar' is more accurate but 'knob' is much faster.
There are some constraints on 'itervar', if you meet
problems with feature extraction when using 'itervar',
you can swith to 'knob'.
you can switch to 'knob'.
For cross-shape tuning (e.g. many convolutions with different shapes),
'itervar' and 'curve' has better transferability,
Expand Down

0 comments on commit 201d305

Please sign in to comment.