From d649ea346d34e67a5a3a7503bada8c05f45ce48f Mon Sep 17 00:00:00 2001 From: Siva Date: Thu, 28 Sep 2023 15:20:13 +0530 Subject: [PATCH] [FRONTEND] Fix unnecessary pylint errors Handle unnecessary pylint errors from these frontends --- tests/python/frontend/keras/test_forward.py | 2 +- tests/python/frontend/oneflow/test_forward.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python/frontend/keras/test_forward.py b/tests/python/frontend/keras/test_forward.py index 9d33b15a9179..ba3880e186ad 100644 --- a/tests/python/frontend/keras/test_forward.py +++ b/tests/python/frontend/keras/test_forward.py @@ -28,11 +28,11 @@ # prevent Keras from using up all gpu memory import keras +import pytest import tvm from tvm import relay from tvm.contrib import graph_executor import tvm.testing -import pytest if tf.executing_eagerly(): GPUS = tf.config.experimental.list_physical_devices("GPU") diff --git a/tests/python/frontend/oneflow/test_forward.py b/tests/python/frontend/oneflow/test_forward.py index 7ddc347e86bc..fda5f1b723c7 100644 --- a/tests/python/frontend/oneflow/test_forward.py +++ b/tests/python/frontend/oneflow/test_forward.py @@ -20,11 +20,11 @@ import numpy as np import oneflow as flow +from packaging import version as package_version import tvm import tvm.testing import tvm.topi.testing from tvm import relay -from packaging import version as package_version MODEL_HOME = "test_model"