Skip to content

Commit 0d0d515

Browse files
yzhliuleonwanghui
andauthored
Fix some typo errors in license header (#5957)
Signed-off-by: leonwanghui <wanghui71leon@gmail.com> Co-authored-by: leonwanghui <wanghui71leon@gmail.com>
1 parent 6fa80ad commit 0d0d515

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

python/tvm/relay/backend/profiler_vm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# License .to the Apache Software Foundation (ASF) under one
1+
# Licensed to the Apache Software Foundation (ASF) under one
22
# or more contributor license agreements. See the NOTICE file
33
# distributed with this work for additional information
44
# regarding copyright ownership. The ASF licenses this file
@@ -22,12 +22,15 @@
2222
"""
2323
from . import vm, _vm
2424

25+
2526
def enabled():
2627
"""Whether vm profiler is enabled."""
2728
return hasattr(_vm, "_VirtualMachineDebug")
2829

30+
2931
class VirtualMachineProfiler(vm.VirtualMachine):
3032
"""Relay profile VM runtime."""
33+
3134
def __init__(self, mod):
3235
super(VirtualMachineProfiler, self).__init__(mod)
3336
m = mod.module if isinstance(mod, vm.Executable) else mod

python/tvm/relay/backend/vm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# License .to the Apache Software Foundation (ASF) under one
1+
# Licensed to the Apache Software Foundation (ASF) under one
22
# or more contributor license agreements. See the NOTICE file
33
# distributed with this work for additional information
44
# regarding copyright ownership. The ASF licenses this file
@@ -473,6 +473,7 @@ class VMExecutor(Executor):
473473
target : :py:class:`Target`
474474
The target option to build the function.
475475
"""
476+
476477
def __init__(self, mod, ctx, target):
477478
if mod is None:
478479
raise RuntimeError("Must provide module to get VM executor.")

0 commit comments

Comments
 (0)