Skip to content

Commit c6e2d72

Browse files
authored
Add subsection about adding new models to RNE ecosystem (#779)
## Description As in the title ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [x] Documentation update (improves or adds clarity to existing documentation) - [ ] Other (chores, tests, code style improvements etc.) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent af553c7 commit c6e2d72

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/docs/01-fundamentals/01-getting-started.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ Running the app with the library:
9090
yarn run expo:<ios | android> -d
9191
```
9292

93+
## Supporting new models in React Native ExecuTorch
94+
95+
Adding new functionality to the library follows a consistent three-step integration pipeline:
96+
97+
1. **Model Serialization:** We export PyTorch models for specific tasks (e.g., object detection) into the *.pte format, which is optimized for the ExecuTorch runtime.
98+
99+
2. **Native Implementation:** We develop a C++ execution layer that interfaces with the ExecuTorch runtime to handle inference. This layer also manages model-dependent logic, such as data pre-processing and post-processing.
100+
101+
3. **TS Bindings:** Finally, we implement a TypeScript API that bridges the JavaScript environment to the native C++ logic, providing a clean, typed interface for the end user."
102+
93103
## Good reads
94104

95105
If you want to dive deeper into ExecuTorch or our previous work with the framework, we highly encourage you to check out the following resources:

0 commit comments

Comments
 (0)