Skip to content

Commit 296565a

Browse files
authored
Fixed pylint issues after moving to venv in ci_lint docker (#12775)
Following change introduced installing python dependencies inside virtual environments: #12663 Previous to this fix, a different version of python was being picked up that didn't catch the issues fixed in this commit. Change-Id: Ie290d9474a799311e07d293fa1b8299326b11661
1 parent 421ff76 commit 296565a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

python/tvm/relay/testing/darknet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
These are utility functions used for testing and tutorial file.
2424
"""
2525
from __future__ import division
26+
from cffi import FFI
2627
import numpy as np
2728
import cv2
28-
from cffi import FFI
2929

3030

3131
def convert_image(image):

tests/python/frontend/darknet/test_forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
All the required models and libraries will be downloaded from the internet
2323
by the script.
2424
"""
25+
from cffi import FFI
2526
import numpy as np
2627
import tvm
2728
from tvm.contrib import graph_executor
@@ -31,7 +32,6 @@
3132
from tvm.relay.testing.darknet import __darknetffi__
3233
from tvm.relay.frontend.darknet import ACTIVATION
3334
from tvm import relay
34-
from cffi import FFI
3535

3636
REPO_URL = "https://github.com/dmlc/web-data/blob/main/darknet/"
3737
DARKNET_LIB = "libdarknet2.0.so"

tests/python/frontend/tensorflow/test_forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
import threading
2727
import platform
2828
import os.path
29+
from packaging import version as package_version
2930
import numpy as np
3031
import pytest
3132

3233
from PIL import Image
33-
from packaging import version as package_version
3434
from tvm import relay
3535
from tvm.runtime.vm import VirtualMachine
3636
from tvm.relay.frontend.tensorflow import from_tensorflow

tests/python/frontend/tflite/test_forward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626

2727
import os
2828
import tempfile
29+
from packaging import version as package_version
2930
import pytest
3031
import numpy as np
3132

3233
from PIL import Image
33-
from packaging import version as package_version
3434

3535
import tvm
3636
import tvm.relay.testing.tf as tf_testing

0 commit comments

Comments
 (0)