pyrefly-torch-stubs 1.3.0.dev4__tar.gz → 1.4.0.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/PKG-INFO +13 -2
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/README.md +11 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/pyproject.toml +2 -2
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/__init__.pyi +556 -83
- pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/_tensor.pyi +10 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/distributions/__init__.pyi +1 -1
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/linalg.pyi +21 -3
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/nn/__init__.pyi +43 -37
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/nn/functional.pyi +22 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/nn/init.pyi +11 -1
- pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/nn/modules/__init__.pyi +10 -0
- pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/nn/modules/module.pyi +10 -0
- pyrefly_torch_stubs-1.4.0.dev1/torch-stubs/nn/parameter.pyi +10 -0
- pyrefly_torch_stubs-1.3.0.dev4/torch-stubs/optim/__init__.pyi +0 -207
- pyrefly_torch_stubs-1.3.0.dev4/torch-stubs/quantization/__init__.pyi +0 -18
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/LICENSE +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/_shapes.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/distributions/beta.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/distributions/categorical.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/distributions/constraints.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/distributions/transformed_distribution.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/distributions/transforms.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/fft.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/nn/attention/__init__.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/nn/attention/flex_attention.pyi +0 -0
- {pyrefly_torch_stubs-1.3.0.dev4 → pyrefly_torch_stubs-1.4.0.dev1}/torch-stubs/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pyrefly-torch-stubs
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0.dev1
|
|
4
4
|
Summary: PyTorch type stubs with tensor-shape tracking, maintained by Pyrefly
|
|
5
5
|
Project-URL: homepage, https://pyrefly.org
|
|
6
6
|
Project-URL: documentation, https://pyrefly.org/en/docs/
|
|
@@ -33,7 +33,7 @@ Classifier: Programming Language :: Python
|
|
|
33
33
|
Classifier: Programming Language :: Python :: 3
|
|
34
34
|
Classifier: Typing :: Stubs Only
|
|
35
35
|
Requires-Python: >=3.12
|
|
36
|
-
Requires-Dist: pyrefly-shape-extensions==1.
|
|
36
|
+
Requires-Dist: pyrefly-shape-extensions==1.4.0.dev1
|
|
37
37
|
Description-Content-Type: text/markdown
|
|
38
38
|
|
|
39
39
|
# pyrefly-torch-stubs
|
|
@@ -46,3 +46,14 @@ runtime `torch` package without replacing or shadowing PyTorch itself.
|
|
|
46
46
|
|
|
47
47
|
The package is versioned in lockstep with Pyrefly and depends on the matching
|
|
48
48
|
`pyrefly-shape-extensions` package.
|
|
49
|
+
|
|
50
|
+
Static checks use the installed Torch package for modules that this package
|
|
51
|
+
intentionally leaves unshaped:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
python3 tensor-shapes/pyrefly-torch-stubs/run_pyrefly.py
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The runner uses `~/.tensor-shapes-venv` by default. Set
|
|
58
|
+
`$TENSOR_SHAPES_VENV` to select another virtualenv, or pass `--python` with an
|
|
59
|
+
interpreter from a virtualenv that has Torch installed.
|
|
@@ -8,3 +8,14 @@ runtime `torch` package without replacing or shadowing PyTorch itself.
|
|
|
8
8
|
|
|
9
9
|
The package is versioned in lockstep with Pyrefly and depends on the matching
|
|
10
10
|
`pyrefly-shape-extensions` package.
|
|
11
|
+
|
|
12
|
+
Static checks use the installed Torch package for modules that this package
|
|
13
|
+
intentionally leaves unshaped:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
python3 tensor-shapes/pyrefly-torch-stubs/run_pyrefly.py
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The runner uses `~/.tensor-shapes-venv` by default. Set
|
|
20
|
+
`$TENSOR_SHAPES_VENV` to select another virtualenv, or pass `--python` with an
|
|
21
|
+
interpreter from a virtualenv that has Torch installed.
|
|
@@ -8,7 +8,7 @@ description = "PyTorch type stubs with tensor-shape tracking, maintained by Pyre
|
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
requires-python = ">=3.12"
|
|
10
10
|
license = { file = "LICENSE" }
|
|
11
|
-
version = "1.
|
|
11
|
+
version = "1.4.0.dev1"
|
|
12
12
|
keywords = ["typechecker", "typechecking", "stubs", "torch", "pytorch"]
|
|
13
13
|
classifiers = [
|
|
14
14
|
"Development Status :: 4 - Beta",
|
|
@@ -18,7 +18,7 @@ classifiers = [
|
|
|
18
18
|
"Typing :: Stubs Only",
|
|
19
19
|
]
|
|
20
20
|
dependencies = [
|
|
21
|
-
"pyrefly-shape-extensions==1.
|
|
21
|
+
"pyrefly-shape-extensions==1.4.0.dev1",
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
[project.urls]
|