Skip to content

Commit

Permalink
Add type.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxybazh committed Sep 20, 2021
1 parent b759069 commit 6099add
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/tvm/meta_schedule/tune_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
num_threads = cpu_count()

self.__init_handle_by_constructor__(
_ffi_api.TuneContext, # pylint: disable=no-member
_ffi_api.TuneContext, # type: ignore # pylint: disable=no-member
mod,
target,
task_name,
Expand Down
7 changes: 5 additions & 2 deletions tests/scripts/task_mypy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
# under the License.
set -o pipefail

echo "Checking MyPy Type defs in the schedule package."
echo "Checking MyPy Type defs in the TensorIR schedule package."
mypy --check-untyped-defs python/tvm/tir/schedule

echo "Checking MyPy Type defs in the meta schedule package."
mypy --check-untyped-defs python/tvm/meta_schedule

echo "Checking MyPy Type defs in the analysis package."
mypy --check-untyped-defs python/tvm/tir/analysis/

echo "Checking MyPy Type defs in the transofrm package."
echo "Checking MyPy Type defs in the transform package."
mypy --check-untyped-defs python/tvm/tir/transform/

echo "Checking MyPy Type defs in the tvm.relay.backend.contrib.ethosu package."
Expand Down

0 comments on commit 6099add

Please sign in to comment.