Skip to content

Commit

Permalink
Fixed some typos in python.rst (#4668)
Browse files Browse the repository at this point in the history
Fixed typos in 6 places.

Signed-off-by: Anand Krishna <51157561+AnandKri@users.noreply.github.com>

Signed-off-by: Anand Krishna <51157561+AnandKri@users.noreply.github.com>
  • Loading branch information
AnandKri committed Nov 21, 2022
1 parent 9955f35 commit 8fb26ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/docsgen/source/intro/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ intermediate results. This is how it looks like.
[Y]) # outputs

# onnx graph
# there is no metata in this case.
# there is no metadata in this case.

onnx_model = make_model(graph)

Expand Down Expand Up @@ -167,7 +167,7 @@ Serialization
=============

ONNX is built on the top of protobuf. It adds the necessary definitions
to describes a machine learned and most of the time, ONNX is used
to describe a machine learning model and most of the time, ONNX is used
to serialize or deserialize a model. First section addresses this need.
Second section introduces the serialization and deserialization of
data such as tensors, sparse tensors...
Expand Down Expand Up @@ -230,7 +230,7 @@ overcome that limit.
Data Serialization
++++++++++++++++++

The serialization of tensor usually happens the following:
The serialization of tensor usually happens like the following:

.. exec_code::

Expand All @@ -250,7 +250,7 @@ The serialization of tensor usually happens the following:
with open("saved_tensor.pb", "wb") as f:
f.write(serialized_tensor)

And the deserialization.
And the deserialization like:

.. exec_code::

Expand All @@ -269,7 +269,7 @@ And the deserialization.
numpy_tensor = to_array(onnx_tensor)
print(numpy_tensor)

The same schema can be used for :ref:`l-tensorproto` but not only:
The same schema can be used for but not limited to :ref:`l-tensorproto`:

.. exec_code::

Expand Down Expand Up @@ -1003,7 +1003,7 @@ Parsing
=======

Module onnx provides a faster way to define a graph
a lot easier to read. That's easy to use when the graph is built
and is lot easier to read. That's easy to use when the graph is built
in a single function, less easy when the graph is built from many
different functions converting each piece of a machine learning
pipeline.
Expand Down

0 comments on commit 8fb26ed

Please sign in to comment.