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_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] ``` ### 向量运算