Skip to content
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] fix typos in comment #4591

Merged
merged 1 commit into from
Dec 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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