From e91f8d29865c8a33c2f246d54638ae4efee73e55 Mon Sep 17 00:00:00 2001 From: Leandro Nunes Date: Thu, 24 Sep 2020 07:48:10 +0100 Subject: [PATCH] tvmc: solve a linting error on onnx command line driver frontend (#6536) * Updates onnx load function from "load" (a compatibility attribute) to "load_model" (the actual function) * Add a pylint command, that we don't see currently on upstream CI, but it reproduces when linting it locally. --- python/tvm/driver/tvmc/frontends.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/tvm/driver/tvmc/frontends.py b/python/tvm/driver/tvmc/frontends.py index 6275f779f778..0ed88216738b 100644 --- a/python/tvm/driver/tvmc/frontends.py +++ b/python/tvm/driver/tvmc/frontends.py @@ -154,6 +154,7 @@ def load(self, path): # pylint: disable=C0415 import onnx + # pylint: disable=E1101 model = onnx.load(path) # pylint: disable=E1101