facebook / facebook/pyrefly

torch stub missing many methods

Open
#3,380 4 comments 0 reactions 0 assignees View on GitHub
tensor-shapes typechecking
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

https://github.com/open-spaced-repetition/srs-benchmark/actions/runs/25816239178/job/75845375535?pr=315

some missing methods:

Error: No attribute `square` in module `torch`
Error: No attribute `square` in module `torch`
Error: No attribute `equal` in module `torch`
Error: Object of class `Tensor` has no attribute `nonzero`
Error: Unexpected keyword argument `device` in function `torch.ones_like`
Error: No attribute `square` in module `torch`
Error: No attribute `square` in module `torch`
Error: No attribute `equal` in module `torch`
Error: Object of class `Tensor` has no attribute `nonzero`
Error: Unexpected keyword argument `device` in function `torch.ones_like`

Error: No attribute `RNN` in module `torch.nn`
Error: No attribute `load` in module `torch`
Error: No attribute `Transformer` in module `torch.nn`
Error: No attribute `load` in module `torch`
Error: No attribute `load` in module `torch`

Error: No attribute `load` in module `torch`
Error: No attribute `one_hot` in module `torch.nn.functional`
Error: No attribute `load` in module `torch`
Error: No attribute `RNN` in module `torch.nn`

### Sandbox Link

_No response_

### (Only applicable for extension issues) IDE Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.