-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gaurav Verma <[email protected]> Signed-off-by: xintin <[email protected]>
- Loading branch information
Showing
3 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# AOT MLP Example | ||
|
||
This example demonstrates export, compilation, and inference of | ||
a simple Multi-Layer Perceptron (MLP) model. | ||
The model is a four-layer neural network. | ||
|
||
To run this example, you should clone the repository to your local device and | ||
install the requirements in a virtual environment: | ||
|
||
```bash | ||
git clone https://github.com/iree-org/iree-turbine.git | ||
cd iree-turbine/examples/aot_mlp | ||
python -m venv mlp.venv | ||
source ./mlp.venv/bin/activate | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Once the requirements are installed, you should be able to run the example. | ||
|
||
```bash | ||
python mlp_export_simple.py | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
numpy | ||
torch | ||
iree-turbine | ||
|