Skip to content

Commit 2d5963b

Browse files
Create frontends/pytorch directory.
* Adds/updates readmes with some notes about code organization and direction. * Meant to prepare a space for upcoming integration of #30.
1 parent a2a36aa commit 2d5963b

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ In addition to providing a bridge to a variety of Python based numerical program
1111

1212
## Framework integrations
1313

14-
* Coming soon
14+
* [PyTorch](frontends/pytorch/README.md) -- Experimental integration for
15+
extracting programs from PyTorch.
1516

1617
## Python language compiler tookit
1718

frontends/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NPComp - Frontends
2+
3+
NPComp maintains in-tree frontends for various popular numeric-python based
4+
frameworks. In general these are:
5+
6+
* Considered optional components
7+
* Target dialects maintained at the top-level of the project
8+
* Maintained in isolation so as to facilitate moving them out to dedicated
9+
projects at an appropriate point of the lifecycle (i.e. if NPComp is
10+
successful as a general purpose target for such frameworks, then it may
11+
make sense to contribute/build each frontend to their respective up-stream
12+
project).
13+
14+
Frontends try to stylistically fit into the outer project except for when it
15+
is more clear/advantageous to align them with the conventions of the source
16+
project. This is approached on a case by case basis as needed. Deviations
17+
should be documented in a local style guide for the frontend.

frontends/pytorch/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NPComp - PyTorch frontend integration
2+
3+
This directory contains optional components for interfacing PyTorch to NPComp.
4+
Integration is targeted at multiple levels:
5+
6+
* Via program capture with a ATen pseudo-device.
7+
* Via IR-level integration with PyTorch (via tracing or scripting interfaces).
8+
* Interfaces to facilitate checking against reference implementations and
9+
verification.
10+
11+
In all situations, the target dialects are maintained in the outer project,
12+
along with their lowerings to common intermediate dialects and backends. This
13+
directory should be purely about interfacing with the PyTorch/LibTorch
14+
components for extracting and executing programs.
15+
16+
See the [overall documentation for frontends](../README.md) for further details
17+
about code layout and integration philosophy.

0 commit comments

Comments
 (0)