Skip to content

Commit e934e6a

Browse files
pytorchbotBujSet
andauthored
Updating Docs for Arm Ethos U Tutorial (#12823)
### Summary Once executorch has been installed, the quantized aot ops lib can be imported directly. Thus, we no longer should advise users to use `torch.ops.load_library()` cc @mergennachin @byjlw Co-authored-by: BujSet <[email protected]>
1 parent 95f15e6 commit e934e6a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/source/backends-arm-ethos-u.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,12 @@ from executorch.exir import (
3535
)
3636
from torchao.quantization.pt2e.quantize_pt2e import convert_pt2e, prepare_pt2e
3737
from torchvision.models import mobilenetv2
38+
import executorch.kernels.quantized
3839

3940
mobilenet_v2 = mobilenetv2.mobilenet_v2(
4041
weights=mobilenetv2.MobileNet_V2_Weights.DEFAULT
4142
).eval()
4243
example_inputs = (torch.randn(1, 3, 224, 224),)
43-
# .so suffix is .dylib on MacOS.
44-
torch.ops.load_library(
45-
"cmake-out-aot-lib/kernels/quantized/libquantized_ops_aot_lib.so"
46-
)
4744

4845
compile_spec = ArmCompileSpecBuilder().ethosu_compile_spec(
4946
"ethos-u55-128",

0 commit comments

Comments
 (0)