Fix some typo errors in license header (#5957)
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
Co-authored-by: leonwanghui <wanghui71leon@gmail.com>
diff --git a/python/tvm/relay/backend/profiler_vm.py b/python/tvm/relay/backend/profiler_vm.py
index 5ee2d66..2abd56f 100644
--- a/python/tvm/relay/backend/profiler_vm.py
+++ b/python/tvm/relay/backend/profiler_vm.py
@@ -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
@@ -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
diff --git a/python/tvm/relay/backend/vm.py b/python/tvm/relay/backend/vm.py
index bfdf3b6..dc13fa4 100644
--- a/python/tvm/relay/backend/vm.py
+++ b/python/tvm/relay/backend/vm.py
@@ -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
@@ -473,6 +473,7 @@
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.")