未验证 提交 847c48a8 编写于 作者: M Mahmoud Ashraf 提交者: GitHub

fix simple typos (#53783)

* correct 1th to 1st

* correct 1th to 1st

* fix typo

* fix typos
上级 926b8861
......@@ -32,8 +32,8 @@ PDNode* BuildSeqExpandConcatPattern(PDPattern* pattern) {
// The following variables will be treat as inputs:
// concat mid input, 0th input for fused op
// sequence_expand input, 1th input for fused op
// sequence_expand input, 2th input for fused op
// sequence_expand input, 1st input for fused op
// sequence_expand input, 2nd input for fused op
// The following variables will be treat as outputs:
// concat output
......
......@@ -35,19 +35,19 @@ def global_scatter(
local_count[0] represents taking out 2 batches from x and sending 2 batches to the 0th expert of the 0th card;
local_count[1] represents taking out 0 batches from x and sending 0 batches to the 1th expert of the 0th card;
local_count[1] represents taking out 0 batches from x and sending 0 batches to the 1st expert of the 0th card;
local_count[2] represents taking out 2 batches from x and sending 2 batches to the 0th expert of the 1th card;
local_count[2] represents taking out 2 batches from x and sending 2 batches to the 0th expert of the 1st card;
local_count[3] represents taking out 0 batches from x and sending 0 batches to the 1th expert of the 1th card;
local_count[3] represents taking out 0 batches from x and sending 0 batches to the 1st expert of the 1st card;
Therefore, the global_count[0] of the 0th card is equal to 2, which means that 2 batches of data are received from the 0th card to the 0th expert;
the global_count[1] of the 0th card is equal to 0, which means that 0 batches of data are received from the 0th card to the 1th expert;
the global_count[1] of the 0th card is equal to 0, which means that 0 batches of data are received from the 0th card to the 1st expert;
the global_count[0] of the 1th card is equal to 2, which means that 2 batches of data are received from the 0th card to the 0th expert;
the global_count[0] of the 1st card is equal to 2, which means that 2 batches of data are received from the 0th card to the 0th expert;
the global_count[1] of the 1th card is equal to 0, which means that 0 batches of data are received from the 0th card to the 1th expert.
the global_count[1] of the 1st card is equal to 0, which means that 0 batches of data are received from the 0th card to the 1st expert.
.. image:: https://githubraw.cdn.bcebos.com/PaddlePaddle/docs/develop/docs/api/paddle/distributed/img/global_scatter_gather.png
:width: 800
......@@ -160,11 +160,11 @@ def global_gather(
The global_count[0] of the 0th card represents sending 2 data to the 0th expert of the 0th card;
The global_count[1] of the 0th card represents sending 0 data to the 1th expert of the 0th card;
The global_count[1] of the 0th card represents sending 0 data to the 1st expert of the 0th card;
The global_count[0] of the 1th card represents sending 2 data to the 0th expert of the 0th card;
The global_count[0] of the 1st card represents sending 2 data to the 0th expert of the 0th card;
The global_count[1] of the 1th card represents sending 0 data to the 1th expert of the 0th card.
The global_count[1] of the 1st card represents sending 0 data to the 1st expert of the 0th card.
.. image:: https://githubraw.cdn.bcebos.com/PaddlePaddle/docs/develop/docs/api/paddle/distributed/img/global_scatter_gather.png
:width: 800
......
......@@ -342,12 +342,12 @@ class TestSparseConvert(unittest.TestCase):
verify(dense_x)
dense_x = paddle.randn(shape)
# set the 1th batch to zero
# set the 1st batch to zero
dense_x[1] = 0
verify(dense_x)
dense_x = paddle.randn(shape)
# set the 2th batch to zero
# set the 2nd batch to zero
dense_x[2] = 0
verify(dense_x)
......
......@@ -136,7 +136,7 @@ class dcgmFileReader(FileReader):
) and not line.strip().startswith("# Entity"):
continue
# skip non-needed headers (only the header in 1th line was needed)
# skip non-needed headers (only the header in 1st line was needed)
if line.strip().startswith("# Entity"):
line = line.strip()[2:]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册