Skip to content

Commit 99fd467

Browse files
authored
Merge branch 'main' into fix_logging
2 parents 88aec7d + e6c2907 commit 99fd467

21 files changed

+12
-1922
lines changed

docs/source/getting-started.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,17 @@ runtime = Runtime.get()
8686
input_tensor: torch.Tensor = torch.randn(1, 3, 224, 224)
8787
program = runtime.load_program("model.pte")
8888
method = program.load_method("forward")
89-
outputs: List[torch.Tensor] = method.execute([input_tensor])
89+
output: List[torch.Tensor] = method.execute([input_tensor])
90+
print("Run succesfully via executorch")
91+
92+
from torchvision.models.mobilenetv2 import MobileNet_V2_Weights
93+
import torchvision.models as models
94+
95+
eager_reference_model = models.mobilenetv2.mobilenet_v2(weights=MobileNet_V2_Weights.DEFAULT).eval()
96+
eager_reference_output = eager_reference_model(input_tensor)
97+
98+
print("Comparing against original PyTorch module")
99+
print(torch.allclose(output[0], eager_reference_output, rtol=1e-3, atol=1e-5))
90100
```
91101

92102

docs/source/using-executorch-building-from-source.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Windows (x86_64)
2929
- Otherwise, Python's built-in virtual environment manager `python venv` is a good alternative.
3030
* `g++` version 7 or higher, `clang++` version 5 or higher, or another
3131
C++17-compatible toolchain.
32+
* `python` version 3.10-3.12
3233

3334
Note that the cross-compilable core runtime code supports a wider range of
3435
toolchains, down to C++17. See the [Runtime Overview](./runtime-overview.md) for

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo.xcodeproj/project.pbxproj

Lines changed: 0 additions & 864 deletions
This file was deleted.

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo.xcodeproj/xcshareddata/xcschemes/App.xcscheme

Lines changed: 0 additions & 90 deletions
This file was deleted.

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo.xcodeproj/xcshareddata/xcschemes/MobileNetClassifierTest.xcscheme

Lines changed: 0 additions & 54 deletions
This file was deleted.

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/App/App.swift

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/App/CameraController.swift

Lines changed: 0 additions & 130 deletions
This file was deleted.

examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/App/CameraPreview.swift

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)