mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: To facilitate PSS-2 upgrade, this uses `ndt.NDArray` instead of `nd.ndarray` in type annotations. In Numpy-1.19 (PSS-1) it's an alias to `nd.ndarray` -- a noop. In Numpy-1.24, `ndt.NDArray` a proper generic type, and without this change uses of `nd.ndarray` generate this Pyre type error: ```counterexample Invalid type parameters [24]: Generic type `np.ndarray` expects 2 type parameters. ``` Test Plan: Sandcastle plus visual inspection Differential Revision: D62977370 Pull Request resolved: https://github.com/pytorch/pytorch/pull/136288 Approved by: https://github.com/kit1980 |
||
|---|---|---|
| .. | ||
| diagnostics | ||
| exporter | ||
| fx | ||
| __init__.py | ||
| _exporter_legacy.py | ||
| _lazy_import.py | ||
| io_adapter.py | ||
| jit_utils.py | ||
| onnx_proto_utils.py | ||
| onnxruntime.py | ||
| registration.py | ||