Skip to content

Commit

Permalink
Fix some typo errors in license header (apache#5957)
Browse files Browse the repository at this point in the history
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>

Co-authored-by: leonwanghui <wanghui71leon@gmail.com>
  • Loading branch information
yzhliu and leonwanghui authored Jun 29, 2020
1 parent 6fa80ad commit 0d0d515
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion python/tvm/relay/backend/profiler_vm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# License .to the Apache Software Foundation (ASF) under one
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
Expand All @@ -22,12 +22,15 @@
"""
from . import vm, _vm


def enabled():
"""Whether vm profiler is enabled."""
return hasattr(_vm, "_VirtualMachineDebug")


class VirtualMachineProfiler(vm.VirtualMachine):
"""Relay profile VM runtime."""

def __init__(self, mod):
super(VirtualMachineProfiler, self).__init__(mod)
m = mod.module if isinstance(mod, vm.Executable) else mod
Expand Down
3 changes: 2 additions & 1 deletion python/tvm/relay/backend/vm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# License .to the Apache Software Foundation (ASF) under one
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
Expand Down Expand Up @@ -473,6 +473,7 @@ class VMExecutor(Executor):
target : :py:class:`Target`
The target option to build the function.
"""

def __init__(self, mod, ctx, target):
if mod is None:
raise RuntimeError("Must provide module to get VM executor.")
Expand Down

0 comments on commit 0d0d515

Please sign in to comment.