You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/website/docs/tutorials/00_setting_up_executorch.md
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,7 @@ To install conda, you can look at the
15
15
```bash
16
16
conda create -yn executorch python=3.10.0
17
17
conda activate executorch
18
-
19
18
conda install cmake
20
-
conda install -c conda-forge flatbuffers
21
19
```
22
20
23
21
### Step 2: Clone the `executorch` repo
@@ -51,7 +49,23 @@ you may need to re-install a new version the PyTorch nightly pip package. The
51
49
`TORCH_VERSION` value in this document will be the correct version for the
52
50
corresponsing version of the repo.
53
51
54
-
### Step 4: Generate a program file from an `nn.Module`
52
+
### Step 4: Install host build tools
53
+
54
+
Install [flatc V23.5.9](https://github.com/google/flatbuffers/releases/tag/v23.5.9) as it's a prerequisite for both AOT and runtime.
55
+
There are several ways to get the flatc compiler, including
56
+
-[MacOS only]`brew install flatbuffers`
57
+
- Download a prebuilt binary from https://github.com/google/flatbuffers/releases/tag/v23.5.9
58
+
- Build it from `executorch/third-party/flatbuffers`, [following instruction from the official website](https://github.com/google/flatbuffers#quick-start). For example, build for MacOS or Linux with:
# point -DCMAKE_TOOLCHAIN_FILE to the location where ndk is installed
125
125
# Run `which buck2`, if it returns empty (meaning the system doesn't know where buck2 is installed), pass in pass in this flag `-DBUCK2=/path/to/buck2` pointing to buck2
0 commit comments