diff --git a/docs/programming_guide/source_en/api_structure.md b/docs/programming_guide/source_en/api_structure.md index 6df689bd542165ad963fc18f93c1785dfb150dd9..1cc0f6e2d0bdb9febc2f13edb7049d79c3a913ef 100644 --- a/docs/programming_guide/source_en/api_structure.md +++ b/docs/programming_guide/source_en/api_structure.md @@ -55,7 +55,7 @@ if __name__ == "__main__": ``` ```text -12.0 +12. ``` In the first step, a function (computational graph) is defined. In the second step, automatic differentiation is performed by using a backward API provided by MindSpore, and the first derivative function (computational graph) is defined. In the third step, the second derivative function (computational graph) is defined. After the input is given, the second derivative of the function defined in step 1 can be obtained at the specified position. The result of the second derivative is `12`. diff --git a/docs/programming_guide/source_en/operators.md b/docs/programming_guide/source_en/operators.md index 7ae063efcb21c00e55725c401e45cc81ce8661ec..948e7025e9e22543c94ecc6b3f4fe46259359e5f 100644 --- a/docs/programming_guide/source_en/operators.md +++ b/docs/programming_guide/source_en/operators.md @@ -163,8 +163,8 @@ print('scalar', add(1, 2)) The following information is displayed: ```text -tensor [[2.4, 4.2] - [4.4, 6.4]] +tensor [[2.4 4.2] + [4.4 6.4]] scalar 3 ``` @@ -241,7 +241,7 @@ print(input_x + input_y) The following information is displayed: ```text -[4.0 5.0 7.0] +[4. 5. 7.] ``` #### Element-wise Multiplication @@ -287,7 +287,7 @@ print(output) The following information is displayed: ```text -[0.7377037, 1.5307858, 1.2661037, 0.97641146] +[0.7377037 1.5307858 1.2661037 0.97641146] ``` ### Vector Operations diff --git a/docs/programming_guide/source_en/optim.md b/docs/programming_guide/source_en/optim.md index 7a697d2df242ef9cb06b369230f312f81b29426a..4c378db189e2f6237af38f31c639ed4f795effb9 100644 --- a/docs/programming_guide/source_en/optim.md +++ b/docs/programming_guide/source_en/optim.md @@ -58,7 +58,7 @@ if __name__ == '__main__': The following information is displayed: ```text -[0.1, 0.1, 0.05, 0.05, 0.05, 0.01, 0.01, 0.01, 0.01, 0.01] +[0.1 0.1 0.05 0.05 0.05 0.01 0.01 0.01 0.01 0.01] ``` ### learning_rate_schedule diff --git a/docs/programming_guide/source_en/tensor.md b/docs/programming_guide/source_en/tensor.md index 6ca70599626ed667af8fcdac9710e0c527d74449..f5f6484ca515f81f11fdf7598c4837fb91dd2691 100644 --- a/docs/programming_guide/source_en/tensor.md +++ b/docs/programming_guide/source_en/tensor.md @@ -90,7 +90,7 @@ print(x_shape, x_dtype) The following information is displayed: ```text -(2, 2) Int32 +(2 2) Int32 ``` ### Methods @@ -124,7 +124,7 @@ False True -[[ True True] +[[True True] [False False]] ``` diff --git a/docs/programming_guide/source_zh_cn/operators.md b/docs/programming_guide/source_zh_cn/operators.md index f07fc5498884c2c2da837b466ac901416eb1a08d..43de57e7b71110aa9b1ea549463a4c32ccdceba7 100644 --- a/docs/programming_guide/source_zh_cn/operators.md +++ b/docs/programming_guide/source_zh_cn/operators.md @@ -167,8 +167,8 @@ print('scalar', add(1, 2)) 输出如下: ```text -tensor [[2.4, 4.2] - [4.4, 6.4]] +tensor [[2.4 4.2] + [4.4 6.4]] scalar 3 ``` @@ -245,7 +245,7 @@ print(input_x + input_y) 输出如下: ```text -[4.0 5.0 7.0] +[4. 5. 7.] ``` #### Element-wise乘法 @@ -291,7 +291,7 @@ print(output) 输出如下: ```text -[0.7377037, 1.5307858, 1.2661037,0.97641146] +[0.7377037 1.5307858 1.2661037 0.97641146] ``` ### 向量运算 diff --git a/tutorials/training/source_zh_cn/index.rst b/tutorials/training/source_zh_cn/index.rst index 42b957d7b40c7312d51136b0f28116b921003a62..ad346577d5b1b57331969859157724887e9f3325 100644 --- a/tutorials/training/source_zh_cn/index.rst +++ b/tutorials/training/source_zh_cn/index.rst @@ -581,6 +581,19 @@ +