Skip to content

No completion suggestions in IDE for torch.zeros #865

@rchen152

Description

@rchen152

Some preliminary investigation by @grievejia summarized here: #783 (comment).

Discussed in #783

Originally posted by michaelfortunato July 29, 2025
Hi all,
I am a big fan of pyrefly. I have a question about pytorch type hints and I am not sure if they are particular to pyrefly or not, but any help would be appreciated. torch.zeros is a valid function in pytorch top level module. However, I get no suggestion completion for torch.zeros. See the photo below:
image

I asked the ai slop bots and they said it might be due to torch.zeros being a function defined in C? Is there a way I can get pyrefly to recognize torch.zeros. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    UserBugs reported by external users that should be prioritisedcodenavpytorch

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions