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

Pyre command hangs on on torch.ao.ns.fx.mappings.get_node_type_to_io_type_map #843

Open
sumersao opened this issue Apr 30, 2024 · 1 comment

Comments

@sumersao
Copy link

I'm getting the following message when running pyre on my codebase.

ƛ The type check of torch.ao.ns.fx.mappings.get_node_type_to_io_type_map is taking more than 1920 seconds (pid = 461].
Is there a way to set a timeout or something? I can't find anything in the documentation -- not really sure how to get around this. Is there a way I can disable the typecheck for this section (idek where this code path is).

@stroxler
Copy link
Contributor

@sumersao off I'm sorry to hear that.

There is not currently a way to set a timeout. There are ways to make Pyre not type check the code in question but all of them would require making changes to the function that is causing the problem to convince Pyre it should skip type checking.

I'm a little perplexed though, that function looks like it's part of PyTorch. Unless you're running Pyre on torch itself I wouldn't have expected such code to be type checked. Could you describe your project structure / what does your .pyre_configuration look like?

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

No branches or pull requests

2 participants