Skip to content

TOR901 lint is too aggressive #125050

Closed
Closed
@zou3519

Description

@zou3519

https://hud.pytorch.org/pr/pytorch/pytorch/124872#24274836004 gives the following:

image

We should only tell people to use torch.library._scoped_library in PyTorch tests (i.e. under the test/* folder). This usage of the torch.library API in the snippet (i.e. using torch.library torch/distributed/_tensor/_collective_utils.py) is allowed.

cc @kit1980

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: lintIssues related to our Python/C++ lint rules (run by Travis)triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions