Skip to content

Commit

Permalink
Fixed pylint issues after moving to venv in ci_lint docker
Browse files Browse the repository at this point in the history
Following change introduced installing python dependencies inside
virtual environments: apache#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
  • Loading branch information
ashutosh-arm committed Sep 14, 2022
1 parent 2aa0d1f commit c2f7bf3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/tvm/relay/testing/darknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
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):
Expand Down
2 changes: 1 addition & 1 deletion tests/python/frontend/darknet/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
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
Expand All @@ -31,7 +32,6 @@
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"
Expand Down
2 changes: 1 addition & 1 deletion tests/python/frontend/tensorflow/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
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
Expand Down
2 changes: 1 addition & 1 deletion tests/python/frontend/tflite/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@

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
Expand Down

0 comments on commit c2f7bf3

Please sign in to comment.