Skip to content

Commit d4b83ad

Browse files
authored
Grammatical Doc Changes (#2567)
1 parent dca17b3 commit d4b83ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs-guides/source/comparing-ml-programs-and-neural-networks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
As ML models evolve in sophistication and complexity, their [representations](#model-representations) are also evolving to describe how they work. _ML programs_ are models that are represented as operations in code. The ML program model type is the foundation for future Core ML improvements.
1111

12-
A few of the major the differences between a neural network and an ML program are as follows:
12+
A few of the major differences between a neural network and an ML program are as follows:
1313

1414
| Neural Network | ML Program |
1515
| ----------- | ----------- |
@@ -42,7 +42,7 @@ Converting to an ML program provides the following advantages over converting to
4242

4343
- More efficient compiling:
4444

45-
Since ML programs do not store weights in the protobuf file format, the models are more memory-efficient to compile. You can significantly improve performance by using Core ML's on-device compilation API. For details, see [Downloading and Compiling a Model on the User’s Device](https://developer.apple.com/documentation/coreml/core_ml_api/downloading_and_compiling_a_model_on_the_user_s_device).
45+
Since ML programs do not store weights in the protobuf file format, the models are more memory-efficient to compile. You can significantly improve performance by using Core ML's on-device compilation API. For details, see [Downloading and Compiling a Model on the User’s Device](https://developer.apple.com/documentation/coreml/core_ml_api/downloading_and_compiling_a_model_on_the_user_s_device).
4646

4747
## Model Representations
4848

docs-guides/source/convert-a-pytorch-segmentation-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Now that the PyTorch model is segmenting the image correctly, you can trace the
126126

127127
However, the model returns a dictionary. If you try to use `trace = torch.jit.trace(model, input_batch)` without first extracting the output you want from the dictionary, the tracer outputs an error: `Only tensors or tuples of tensors can be output from traced functions`.
128128

129-
To sidestep this limitation, you can wrap the model in a module that extracts the output from the dictionary:
129+
To sidestep this limitation, you can wrap the model in a module that extracts the output from the dictionary:
130130

131131
```python
132132
class WrappedDeeplabv3Resnet101(nn.Module):

0 commit comments

Comments
 (0)