This is an automated email from the ASF dual-hosted git repository.
zhaowu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git
The following commit(s) were added to refs/heads/master by this push:
new 22b8121 tvmc: solve a linting error on onnx command line driver
frontend (#6536)
22b8121 is described below
commit 22b8121ba77e2bad5e580b5ca7ce9a816f65a193
Author: Leandro Nunes <[email protected]>
AuthorDate: Thu Sep 24 07:48:10 2020 +0100
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 6275f77..0ed8821 100644
--- a/python/tvm/driver/tvmc/frontends.py
+++ b/python/tvm/driver/tvmc/frontends.py
@@ -154,6 +154,7 @@ class OnnxFrontend(Frontend):
# pylint: disable=C0415
import onnx
+ # pylint: disable=E1101
model = onnx.load(path)
# pylint: disable=E1101