Skip to content

Commit 5a1315e

Browse files
committed
fix lint
1 parent d3bf929 commit 5a1315e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

HalideIR

python/tvm/contrib/cc.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import os
88
from .util import tempdir
9-
from .._ffi.libinfo import find_lib_path
109

1110

1211
def create_shared(output,
@@ -101,15 +100,13 @@ def _windows_shared(output, objects, options):
101100
with open(obj + ".flags", "r") as flags_obj:
102101
flags = flags_obj.readline()
103102
flags = flags.replace(",DATA", "").split(' ')
104-
flags = [item for item in filter(lambda x: x != '', flags)]
103+
flags = [item for item in flags if item != ""]
105104
link_cmd += flags
106105

107-
# tvm_runtime = find_lib_path("tvm_runtime.lib")
108-
# link_cmd += [tvm_runtime]
109106
link_cmd += ["-EXPORT:__tvm_main__"]
110107
link_cmd += [temp_path + "dllmain.obj"]
111108
link_cmd += ["-out:" + output]
112-
print(link_cmd)
109+
113110
proc = subprocess.Popen(
114111
link_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
115112
(out, _) = proc.communicate()

python/tvm/module.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from collections import namedtuple
55

6-
import sys
7-
86
from ._ffi.function import ModuleBase, _set_class_module
97
from ._ffi.function import _init_api
108
from .contrib import cc as _cc, tar as _tar, util as _util

0 commit comments

Comments
 (0)