Johnson9009 opened a new issue #10357:
URL: https://github.com/apache/tvm/issues/10357


   Pylint report some errors.
   
   ### Expected behavior
   
   No error.
   
   ### Actual behavior
   
   ➜  git:(main✔) incubator-tvm tests/lint/pylint.sh
   ++ dirname tests/lint/pylint.sh
   + python3 -m pylint python/tvm --rcfile=tests/lint/pylintrc
   ************* Module tvm.meta_schedule.cost_model.xgb_model
   python/tvm/meta_schedule/cost_model/xgb_model.py:136: 
[E1126(invalid-sequence-index), PackSum.obj_square_error] Sequence index is not 
an
   int, slice, or instance with __index__
   python/tvm/meta_schedule/cost_model/xgb_model.py:161: 
[E1126(invalid-sequence-index), PackSum.rmse] Sequence index is not an int, 
slice,
   or instance with __index__
   ************* Module tvm.relay.frontend.qnn_torch
   python/tvm/relay/frontend/qnn_torch.py:550: [I1101(c-extension-no-member), 
inline_input_quant_params_for_fx] Module 'torch._C' has no 'Fl
   oatType' member, but source is unavailable. Consider adding this module to 
extension-pkg-whitelist if you want to perform analysis based
   on run-time introspection of living objects.
   python/tvm/relay/frontend/qnn_torch.py:553: [I1101(c-extension-no-member), 
inline_input_quant_params_for_fx] Module 'torch._C' has no 'In
   tType' member, but source is unavailable. Consider adding this module to 
extension-pkg-whitelist if you want to perform analysis based on
    run-time introspection of living objects.
   ************* Module tvm.relay.qnn.op.legalizations
   python/tvm/relay/qnn/op/legalizations.py:21: [C0411(wrong-import-order), ] 
third party import "from scipy import special" should be place
   d before "import tvm"
   ************* Module tvm.topi.arm_cpu.injective
   python/tvm/topi/arm_cpu/injective.py:20: [C0411(wrong-import-order), ] third 
party import "import numpy as np" should be placed before "i
   mport tvm"
   
   --------------------------------------------------------------------
   Your code has been rated at 10.00/10 (previous run: 10.00/10, -0.00)
   
   
   ### Environment
   
   Any environment details, such as: Operating System, TVM version, etc
   
   ### Steps to reproduce
   
   Preferably a minimal script to cause the issue to occur.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to