Commit c52f6a0
authored
Default Export for Mv2 with Real Image Input (pytorch#13019)
### Summary
When testing executorch inference runners on real MCUs, it's helpful if
the default export of the model includes a real input (rather than just
filled with random values or all 1.0s). This PR does this for the
mobilenet_v2 model, following the steps from the tutorial
[here](https://pytorch.org/hub/pytorch_vision_mobilenet_v2/).
### Test plan
Ran `python -m examples.portable.scripts.export --model_name="mv2"` and
saw the PTE now contains values associated with the `dog.jpg` image.1 parent d4f5ee6 commit c52f6a0
1 file changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
29 | 60 | | |
30 | 61 | | |
31 | 62 | | |
| |||
0 commit comments