Skip to content

Commit

Permalink
Fix typo. (apache#9462)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxybazh authored and ylc committed Jan 7, 2022
1 parent 66614c2 commit 7c51240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions python/tvm/meta_schedule/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def structural_hash(mod: IRModule) -> str:
def check_override(
derived_class: Any, base_class: Any, required: bool = True, func_name: str = None
) -> Callable:
"""Check if the derived class has overrided the base class's method.
"""Check if the derived class has overridden the base class's method.
Parameters
----------
Expand All @@ -227,8 +227,8 @@ def check_override(
Returns
-------
func : Callable
Raise NotImplementedError if the function is required and not overrided. If the
function is not overrided return None, other return the overrided function.
Raise NotImplementedError if the function is required and not overridden. If the
function is not overridden return None, other return the overridden function.
"""

def inner(func: Callable):
Expand Down
4 changes: 2 additions & 2 deletions tests/python/unittest/test_meta_schedule_task_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def next_task_id(self) -> int:
Call TaskScheduler's `is_task_running`, which calls ffi
C++ side:
The ffi calls TaskScheduler's `is_task_running`
But it is overrided in PyTaskScheduler
PyTaskScheduler checks if the function is overrided in python
But it is overridden in PyTaskScheduler
PyTaskScheduler checks if the function is overridden in python
If not, it returns the TaskScheduler's vtable, calling
TaskScheduler::IsTaskRunning
"""
Expand Down

0 comments on commit 7c51240

Please sign in to comment.