Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pylint] Pylint integration_tests folder #11672

Merged
merged 18 commits into from Jul 7, 2022

Conversation

AndrewZhaoLuo
Copy link
Contributor

See #11414

tests/lint/pylint.sh Outdated Show resolved Hide resolved
@AndrewZhaoLuo AndrewZhaoLuo changed the title [WIP][Pylint] Pylint integration_tests folder [Pylint] Pylint integration_tests folder Jun 23, 2022
@AndrewZhaoLuo
Copy link
Contributor Author

@ashutosh-arm this is now ready for review

Copy link
Contributor

@ashutosh-arm ashutosh-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AndrewZhaoLuo. Looks nice 👍 . Just a few nits and queries.

tests/python/integration/test_dot.py Outdated Show resolved Hide resolved
tests/python/integration/test_ewise.py Outdated Show resolved Hide resolved
tests/python/integration/test_lower.py Show resolved Hide resolved
tests/python/integration/test_ewise_fpga.py Outdated Show resolved Hide resolved
tests/python/integration/test_ewise.py Show resolved Hide resolved
tests/python/integration/test_lower.py Outdated Show resolved Hide resolved


@T.prim_func
def tensorcore_gemm(a: T.handle, b: T.handle, c: T.handle) -> None:
def tensorcore_gemm(handle_a: T.handle, handle_b: T.handle, handle_c: T.handle) -> None:
# pylint: disable=missing-function-docstring
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we not able to get rid of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is tir script or whatever it's called, we can't actually insert a docstring since the parser does not handle it

@autotvm.template("testing/conv2d_no_batching")
def conv2d_no_batching(N, H, W, CI, CO, KH, KW):
def conv2d_no_batching( # pylint: disable=unused-variable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not able to remove the pylint disable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the function isn't used so yeah unfortunately not :/, however it is registered in the big autotvm task table or something

tests/python/integration/test_tuning.py Outdated Show resolved Hide resolved
@AndrewZhaoLuo
Copy link
Contributor Author

PTAL @ashutosh-arm

@masahi masahi merged commit a8e3294 into apache:main Jul 7, 2022
masahi pushed a commit to masahi/tvm that referenced this pull request Jul 15, 2022
* add folder to pylint

* add init py

* lint test_arm_mrpofile_dsp.py

* one more change to tests/python/integratoin/test_arm_mprofile_dsp.py

* add test_dot

* test_ewise_fpga.py

* test_ewise.py

* test gemm

* test_lower.py

* test_meta_schedule_auto_tensorize.py

* test_reduce.py pt1

* test_reduce.py pt2

* test_scan.py

* test_tuning.py

* test_winograd_nnpack.py

* final test pass

* comments

* clean up test_lower more
junrushao pushed a commit to yelite/tvm that referenced this pull request Jul 27, 2022
* add folder to pylint

* add init py

* lint test_arm_mrpofile_dsp.py

* one more change to tests/python/integratoin/test_arm_mprofile_dsp.py

* add test_dot

* test_ewise_fpga.py

* test_ewise.py

* test gemm

* test_lower.py

* test_meta_schedule_auto_tensorize.py

* test_reduce.py pt1

* test_reduce.py pt2

* test_scan.py

* test_tuning.py

* test_winograd_nnpack.py

* final test pass

* comments

* clean up test_lower more
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
* add folder to pylint

* add init py

* lint test_arm_mrpofile_dsp.py

* one more change to tests/python/integratoin/test_arm_mprofile_dsp.py

* add test_dot

* test_ewise_fpga.py

* test_ewise.py

* test gemm

* test_lower.py

* test_meta_schedule_auto_tensorize.py

* test_reduce.py pt1

* test_reduce.py pt2

* test_scan.py

* test_tuning.py

* test_winograd_nnpack.py

* final test pass

* comments

* clean up test_lower more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants