From 0d0d515c1b25f16dc3c6d4ab0277ef9173b1d992 Mon Sep 17 00:00:00 2001 From: Yizhi Liu Date: Mon, 29 Jun 2020 11:00:08 -0700 Subject: [PATCH] Fix some typo errors in license header (#5957) Signed-off-by: leonwanghui Co-authored-by: leonwanghui --- python/tvm/relay/backend/profiler_vm.py | 5 ++++- python/tvm/relay/backend/vm.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/python/tvm/relay/backend/profiler_vm.py b/python/tvm/relay/backend/profiler_vm.py index 5ee2d66c878a..2abd56f25900 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 bfdf3b616153..dc13fa4dc596 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 @@ 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.")