You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by le...@apache.org on 2022/09/14 22:06:19 UTC

[tvm] branch main updated: Fixed pylint issues after moving to venv in ci_lint docker (#12775)

This is an automated email from the ASF dual-hosted git repository.

leandron pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 296565aaf9 Fixed pylint issues after moving to venv in ci_lint docker (#12775)
296565aaf9 is described below

commit 296565aaf985adbc33ede565e9b167987138ddfc
Author: Ashutosh Parkhi <86...@users.noreply.github.com>
AuthorDate: Wed Sep 14 23:06:05 2022 +0100

    Fixed pylint issues after moving to venv in ci_lint docker (#12775)
    
    Following change introduced installing python dependencies inside
    virtual environments: https://github.com/apache/tvm/pull/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
---
 python/tvm/relay/testing/darknet.py              | 2 +-
 tests/python/frontend/darknet/test_forward.py    | 2 +-
 tests/python/frontend/tensorflow/test_forward.py | 2 +-
 tests/python/frontend/tflite/test_forward.py     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/python/tvm/relay/testing/darknet.py b/python/tvm/relay/testing/darknet.py
index e1345043c6..b1f364273e 100644
--- a/python/tvm/relay/testing/darknet.py
+++ b/python/tvm/relay/testing/darknet.py
@@ -23,9 +23,9 @@ This functions will not be loaded by default.
 These are utility functions used for testing and tutorial file.
 """
 from __future__ import division
+from cffi import FFI
 import numpy as np
 import cv2
-from cffi import FFI
 
 
 def convert_image(image):
diff --git a/tests/python/frontend/darknet/test_forward.py b/tests/python/frontend/darknet/test_forward.py
index ffaa773fc1..5e6af51f32 100644
--- a/tests/python/frontend/darknet/test_forward.py
+++ b/tests/python/frontend/darknet/test_forward.py
@@ -22,6 +22,7 @@ This article is a test script to test darknet models with Relay.
 All the required models and libraries will be downloaded from the internet
 by the script.
 """
+from cffi import FFI
 import numpy as np
 import tvm
 from tvm.contrib import graph_executor
@@ -31,7 +32,6 @@ from tvm.relay.testing.darknet import LAYERTYPE
 from tvm.relay.testing.darknet import __darknetffi__
 from tvm.relay.frontend.darknet import ACTIVATION
 from tvm import relay
-from cffi import FFI
 
 REPO_URL = "https://github.com/dmlc/web-data/blob/main/darknet/"
 DARKNET_LIB = "libdarknet2.0.so"
diff --git a/tests/python/frontend/tensorflow/test_forward.py b/tests/python/frontend/tensorflow/test_forward.py
index 8ed6d9108e..f3195f05d4 100755
--- a/tests/python/frontend/tensorflow/test_forward.py
+++ b/tests/python/frontend/tensorflow/test_forward.py
@@ -26,11 +26,11 @@ from distutils.version import LooseVersion
 import threading
 import platform
 import os.path
+from packaging import version as package_version
 import numpy as np
 import pytest
 
 from PIL import Image
-from packaging import version as package_version
 from tvm import relay
 from tvm.runtime.vm import VirtualMachine
 from tvm.relay.frontend.tensorflow import from_tensorflow
diff --git a/tests/python/frontend/tflite/test_forward.py b/tests/python/frontend/tflite/test_forward.py
index 18045b8e83..deaef72e1d 100644
--- a/tests/python/frontend/tflite/test_forward.py
+++ b/tests/python/frontend/tflite/test_forward.py
@@ -26,11 +26,11 @@ from distutils.version import LooseVersion
 
 import os
 import tempfile
+from packaging import version as package_version
 import pytest
 import numpy as np
 
 from PIL import Image
-from packaging import version as package_version
 
 import tvm
 import tvm.relay.testing.tf as tf_testing