This is an automated email from the ASF dual-hosted git repository. liuyizhi pushed a commit to branch v0.6 in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git
The following commit(s) were added to refs/heads/v0.6 by this push: new 0d0d515 Fix some typo errors in license header (#5957) 0d0d515 is described below commit 0d0d515c1b25f16dc3c6d4ab0277ef9173b1d992 Author: Yizhi Liu <liuyi...@apache.org> AuthorDate: Mon Jun 29 11:00:08 2020 -0700 Fix some typo errors in license header (#5957) Signed-off-by: leonwanghui <wanghui71l...@gmail.com> Co-authored-by: leonwanghui <wanghui71l...@gmail.com> --- 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 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 @@ Provides extra APIs for profiling vm execution. """ 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 @@ 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.")