Commit 5e02fef
committed
feat(constants): wire up backend selection in MODEL_REGISTRY accessors
Each accessor's `backend` parameter is now typed to exactly the backends the
model ships with — passing an unsupported one is a compile-time error.
`Platform.OS` still picks the default when `backend` is omitted. The per-
backend (quant × backend) variant matrix lives in modelRegistry.ts so
modelUrls.ts stays flat-per-model.
Unifies DISTILUSE_BASE_MULTILINGUAL_CASED_V2 to one accessor with
xnnpack + coreml; the _8DA4W and _COREML named constants stay as
deprecated aliases.1 parent a78b52a commit 5e02fef
3 files changed
Lines changed: 346 additions & 42 deletions
File tree
- docs/docs/05-utilities
- packages/react-native-executorch/src/constants
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
73 | 87 | | |
74 | 88 | | |
75 | 89 | | |
| |||
0 commit comments