Skip to content

Commit 17bde45

Browse files
committed
pylint fix
1 parent d253153 commit 17bde45

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

python/tvm/relay/op/strategy/hexagon.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ def schedule_reduce_hexagon(attrs, outs, target):
193193
def conv2d_NCHWc_strategy_hexagon(attrs, inputs, out_type, target):
194194
"""conv2d_NCHWc_ hexagon strategy"""
195195
strategy = _op.OpStrategy()
196-
data, kernel = inputs
197196
strategy.add_implementation(
198197
wrap_compute_conv2d(
199198
topi.hexagon.conv2d_NCHWc_int8, need_data_layout=True, need_out_layout=True

python/tvm/topi/hexagon/conv2d.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
17+
# pylint: disable=invalid-name
1818
"""Schedule for conv2d"""
1919

2020
import tvm
2121
from tvm import te
2222
from .. import nn
2323
from ..utils import traverse_inline
24-
from tvm.topi.utils import get_const_tuple
2524
from .tensor_intrin import dot_vrmpy
2625
from ..generic import conv2d as conv2d_generic
2726

python/tvm/topi/hexagon/dense.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
17+
# pylint: disable=invalid-name
1818
"""Schedule for dense operator"""
1919

2020
import tvm
21-
from tvm.topi.utils import get_const_tuple, traverse_inline
21+
from tvm.topi.utils import traverse_inline
2222
from tvm import te
2323
from .. import tag
2424
from .tensor_intrin import dot_vrmpy

python/tvm/topi/hexagon/dense_alter_op.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"""Dense alter op functions for ARM"""
1919

2020
import tvm
21-
from tvm import te
2221
from tvm import relay
23-
from tvm import autotvm
24-
from ..utils import get_const_tuple
2522
from .. import nn
2623
from ..nn import dense_alter_layout
2724

@@ -137,7 +134,7 @@ def _dense_legalize(attrs, inputs, arg_types):
137134
tvm.ir.tensor_type.TensorType([N + dn, arg_types[1].shape[1]], arg_types[1].dtype),
138135
]
139136

140-
vrmpy_out = vrmpy_legalize(x, y_, arg_types, relay.nn.dense, new_attrs, False)
137+
vrmpy_out = vrmpy_legalize(x, y_, arg_types, relay.nn.dense, new_attrs)
141138

142139
if vrmpy_out is None:
143140
out_ = relay.nn.dense(x, y_, **new_attrs)
@@ -147,4 +144,4 @@ def _dense_legalize(attrs, inputs, arg_types):
147144
out = relay.strided_slice(out_, begin=[0, 0], end=[x.value for x in output_tensor.shape])
148145
return out
149146

150-
return vrmpy_legalize(inputs[0], inputs[1], arg_types, relay.nn.dense, attrs, False)
147+
return vrmpy_legalize(inputs[0], inputs[1], arg_types, relay.nn.dense, attrs)

python/tvm/topi/hexagon/tensor_intrin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17+
# pylint: disable=invalid-name
1718
"""Optimized implementation of q_multiply_shift based on LLVM intrinsics"""
1819

1920
import tvm

tests/python/contrib/test_hexagon/test_launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
17+
# pylint: disable=invalid-name,missing-function-docstring
1818
""" Test rpc based launcher for hexagon """
1919

2020
import numpy as np

0 commit comments

Comments
 (0)