Skip to content

Commit 3f04e80

Browse files
authored
Update backends-xnnpack.md
1 parent 20c7047 commit 3f04e80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/source/backends-xnnpack.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ the core ExecuTorch runtime.
2828
To target the XNNPACK backend during the export and lowering process, pass an instance of the `XnnpackPartitioner` to `to_edge_transform_and_lower`. The example below demonstrates this process using the MobileNet V2 model from torchvision.
2929

3030
```python
31+
import torch
3132
import torchvision.models as models
3233
from torchvision.models.mobilenetv2 import MobileNet_V2_Weights
3334
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner

0 commit comments

Comments
 (0)