Skip to content

Commit 4f4e61a

Browse files
[CodeStyle][Typos][D-[16-19]] Fix typo(" dimention"," dimentions","dirrectories","disucssion") (#7618)
* fix-c19-c23 * fix-c6-c7-c24-c26 * fix-d6-d10 * fix-some-qe * test-commit * fix-d11-d15-p11-12 * fix-d16-d19 * debug * debug * Merge branch 'develop' of https://github.com/PaddlePaddle/docs into fix-d16-d19 --------- Co-authored-by: ooooo <[email protected]>
1 parent 05708b9 commit 4f4e61a

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

_typos.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ Optimzier = "Optimzier"
3636
Setment = "Setment"
3737
Simle = "Simle"
3838
Sovler = "Sovler"
39-
dimention = "dimention"
40-
dimentions = "dimentions"
41-
dirrectories = "dirrectories"
42-
disucssion = "disucssion"
4339
inferface = "inferface"
4440
infor = "infor"
4541
instert = "instert"

docs/design/motivation/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Some essential concepts that our API have to provide include:
2626

2727
As a summarization
2828
of
29-
[our disucssion](https://github.com/PaddlePaddle/Paddle/issues/1315),
29+
[our discussion](https://github.com/PaddlePaddle/Paddle/issues/1315),
3030
let us present two examples here:
3131

3232

docs/dev_guides/custom_device_docs/custom_device_example_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ add_custom_command(TARGET ${PLUGIN_NAME} POST_BUILD
285285
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/python/
286286
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/python/paddle-plugins/
287287
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/lib${PLUGIN_NAME}.so ${CMAKE_CURRENT_BINARY_DIR}/python/paddle-plugins/
288-
COMMENT "Creating plugin dirrectories------>>>"
288+
COMMENT "Creating plugin directories------>>>"
289289
)
290290
291291
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python/.timestamp

docs/dev_guides/custom_device_docs/custom_device_example_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ add_custom_command(TARGET ${PLUGIN_NAME} POST_BUILD
281281
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/python/
282282
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/python/paddle-plugins/
283283
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/lib${PLUGIN_NAME}.so ${CMAKE_CURRENT_BINARY_DIR}/python/paddle-plugins/
284-
COMMENT "Creating plugin dirrectories------>>>"
284+
COMMENT "Creating plugin directories------>>>"
285285
)
286286
287287
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python/.timestamp

docs/guides/beginner/tensor_en.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ Note that no copies happened while broadcasting.
514514

515515
In PaddlePaddle, tensors are broadcastable when following rulrs hold(ref [Numpy Broadcasting](https://numpy.org/doc/stable/user/basics.broadcasting.html#module-numpy.doc.broadcasting)):
516516

517-
1. there should be at least one dimention in each tensor
517+
1. there should be at least one dimension in each tensor
518518
2. when comparing their shapes element-wise from backward to forward, two dimensions are compatible when
519519
they are equal, or one of them is 1, or one of them does not exist.
520520

@@ -532,10 +532,10 @@ x = paddle.ones((2, 3, 1, 5))
532532
y = paddle.ones((3, 4, 1))
533533

534534
# compare from backward to forward:
535-
# 1st step:y's dimention is 1
536-
# 2nd step:x's dimention is 1
537-
# 3rd step:two dimentions are the same
538-
# 4st step:y's dimention does not exist
535+
# 1st step:y's dimension is 1
536+
# 2nd step:x's dimension is 1
537+
# 3rd step:two dimensions are the same
538+
# 4st step:y's dimension does not exist
539539
# So, x and y are broadcastable
540540
z = x + y
541541
print(z.shape)
@@ -544,7 +544,7 @@ print(z.shape)
544544
# In Compare
545545
x = paddle.ones((2, 3, 4))
546546
y = paddle.ones((2, 3, 6))
547-
# x and y are not broadcastable because in first step form tail, x's dimention 4 is not equal to y's dimention 6
547+
# x and y are not broadcastable because in first step form tail, x's dimension 4 is not equal to y's dimension 6
548548
# z = x, y
549549
# ValueError: (InvalidArgument) Broadcast dimension mismatch.
550550
```

docs/guides/beginner/tensor_index_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Tensor(shape=[1, 2, 3, 4], dtype=int64, place=Place(cpu), stop_gradient=True,
354354
[16, 17, 18, 19],
355355
[20, 21, 22, 23]]]])
356356

357-
>>> b = a[:, [0,0,1], [1,2,0],:] # the new dimention is at axis 1
357+
>>> b = a[:, [0,0,1], [1,2,0],:] # the new dimension is at axis 1
358358
>>> b
359359
Tensor(shape=[1, 3, 4], dtype=int64, place=Place(cpu), stop_gradient=True,
360360
[[[4 , 5 , 6 , 7 ],
@@ -369,7 +369,7 @@ Tensor(shape=[1, 3], dtype=int64, place=Place(cpu), stop_gradient=True,
369369
#### 场景 2-高级索引位置不相邻
370370
当高级索引位置不相邻时,则`index`对应产生最终的输出结果会放到第一维上。
371371
```python
372-
>>> d = a[:, [1], :, [2,1,0]] # advanced indexes are not adjacent, the new dimention is at axis 0
372+
>>> d = a[:, [1], :, [2,1,0]] # advanced indexes are not adjacent, the new dimension is at axis 0
373373
>>> d
374374
Tensor(shape=[3, 1, 3], dtype=int64, place=Place(cpu), stop_gradient=True,
375375
[[[14, 18, 22]],

0 commit comments

Comments
 (0)