Skip to content

Commit 7a1e3b1

Browse files
committed
Fix getting started code snippet (#8637)
Fix quotes in getting started code snippets
1 parent 68426c2 commit 7a1e3b1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/source/getting-started.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ import executorch
5151
model = MyModel() # The PyTorch model to export
5252
example_inputs = (torch.randn(1,3,64,64),) # A tuple of inputs
5353

54-
et_program =
55-
executorch.exir.to_edge_transform_and_lower(
56-
torch.export.export(model, example_inputs)
57-
partitioner=[XnnpackPartitioner()]
54+
et_program = executorch.exir.to_edge_transform_and_lower(
55+
torch.export.export(model, example_inputs),
56+
partitioner=[XnnpackPartitioner()]
5857
).to_executorch()
5958

60-
with open(model.pte”, “wb”) as f:
59+
with open("model.pte", "wb") as f:
6160
f.write(et_program.buffer)
6261
```
6362

@@ -121,7 +120,7 @@ import org.pytorch.executorch.Tensor;
121120

122121
//
123122

124-
Module model = Module.load(/path/to/model.pte);
123+
Module model = Module.load("/path/to/model.pte");
125124

126125
Tensor input_tensor = Tensor.fromBlob(float_data, new long[] { 1, 3, height, width });
127126
EValue input_evalue = EValue.from(input_tensor);

0 commit comments

Comments
 (0)