Skip to content

Commit 332a2d0

Browse files
committed
Explicitly include the main goal in the abstract.
1 parent 44ee780 commit 332a2d0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

RFC.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ In simple terms, this accounts for implementing most of NumPy's API (`ndarray`,
1111
the `numpy`, `numpy.linalg`, `numpy.fft` modules, etc) using `torch.Tensor`
1212
and PyTorch ops as backend.
1313

14-
15-
The this project has a main goal as per the
16-
[initial design document](https://docs.google.com/document/d/1gdUDgZNbumFORRcUaZUVw790CtNYweAM20C1fbWMNd8):
17-
1. Make TorchDynamo understand NumPy calls
14+
The main goal is: **make TorchDynamo understand NumPy calls**.
15+
This should enable an end user to combine code that uses the PyTorch API with
16+
code that uses the NumPy API, in a way that allows TorchDynamo to understand
17+
those function calls and build up an execution graph. To enable this, it is key
18+
that there is a translation layer from NumPy to PyTorch function calls, which
19+
TorchDynamo can use in order to build up its execution graph from PyTorch
20+
functions/primitives only. For niche functions in NumPy that don’t have a
21+
PyTorch equivalent, it’s okay to graph break and still call NumPy to execute
22+
the function call.
1823

1924
The work is currently being done at [numpy_pytorch_interop](https://github.com/Quansight-Labs/numpy_pytorch_interop/).
2025

0 commit comments

Comments
 (0)