Skip to content

[PyTorch] Fix linter warnings from unused args#816

Merged
ksivaman merged 2 commits intoNVIDIA:mainfrom
timmoon10:fix-linter-errors
Apr 30, 2024
Merged

[PyTorch] Fix linter warnings from unused args#816
ksivaman merged 2 commits intoNVIDIA:mainfrom
timmoon10:fix-linter-errors

Conversation

@timmoon10
Copy link
Collaborator

We're seeing Pylint failures in the nightly CI because we are defining some PyTorch autograd functions that don't access the autograd context. This PR silences those warnings by renaming the args with a leading underscore.

Signed-off-by: Tim Moon <tmoon@nvidia.com>
@timmoon10 timmoon10 added the bug Something isn't working label Apr 26, 2024
@timmoon10 timmoon10 requested a review from ksivaman April 26, 2024 18:05
@timmoon10
Copy link
Collaborator Author

/te-ci pytorch

Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
Signed-off-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
Copy link
Member

@ksivaman ksivaman left a comment

Choose a reason for hiding this comment

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

LGTM

@ksivaman ksivaman merged commit 1f36c2c into NVIDIA:main Apr 30, 2024
@timmoon10 timmoon10 deleted the fix-linter-errors branch April 30, 2024 18:14
phu0ngng pushed a commit to phu0ngng/TransformerEngine that referenced this pull request May 3, 2024
* Fix linter warnings from unused args

Signed-off-by: Tim Moon <tmoon@nvidia.com>

* Update .gitignore

Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
Signed-off-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>

---------

Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
pggPL pushed a commit to pggPL/TransformerEngine that referenced this pull request May 23, 2024
* Fix linter warnings from unused args

Signed-off-by: Tim Moon <tmoon@nvidia.com>

* Update .gitignore

Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
Signed-off-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>

---------

Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments