From 1e9d6acd0a414175f6231690f684786cf308f52e Mon Sep 17 00:00:00 2001 From: lilinjie Date: Mon, 5 Dec 2022 11:31:18 +0800 Subject: [PATCH] code_docs_1205_fix_docs_20 --- docs/api/api_python/mindspore.ops.primitive.rst | 3 +++ docs/api/api_python_en/mindspore.ops.primitive.rst | 3 +++ mindspore/python/mindspore/ops/operations/image_ops.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/api/api_python/mindspore.ops.primitive.rst b/docs/api/api_python/mindspore.ops.primitive.rst index 79dee040192..d4b521e45a7 100644 --- a/docs/api/api_python/mindspore.ops.primitive.rst +++ b/docs/api/api_python/mindspore.ops.primitive.rst @@ -80,6 +80,7 @@ MindSpore中 `mindspore.ops` 接口与上一版本相比,新增、删除和支 mindspore.ops.NthElement mindspore.ops.NuclearNorm mindspore.ops.Pad + mindspore.ops.PadV3 mindspore.ops.Padding mindspore.ops.ResizeNearestNeighbor mindspore.ops.ResizeBilinear @@ -221,6 +222,7 @@ MindSpore中 `mindspore.ops` 接口与上一版本相比,新增、删除和支 mindspore.ops.IOU mindspore.ops.L2Normalize mindspore.ops.NMSWithMask + mindspore.ops.NonMaxSuppressionV3 mindspore.ops.NonMaxSuppressionWithOverlaps mindspore.ops.PSROIPooling mindspore.ops.RGBToHSV @@ -546,6 +548,7 @@ Array操作 mindspore.ops.ReverseSequence mindspore.ops.ReverseV2 mindspore.ops.RightShift + mindspore.ops.Roll mindspore.ops.ScatterAddWithAxis mindspore.ops.ScatterNd mindspore.ops.ScatterNdDiv diff --git a/docs/api/api_python_en/mindspore.ops.primitive.rst b/docs/api/api_python_en/mindspore.ops.primitive.rst index c831408a47b..57e83f6d36a 100644 --- a/docs/api/api_python_en/mindspore.ops.primitive.rst +++ b/docs/api/api_python_en/mindspore.ops.primitive.rst @@ -79,6 +79,7 @@ Neural Network mindspore.ops.NthElement mindspore.ops.NuclearNorm mindspore.ops.Pad + mindspore.ops.PadV3 mindspore.ops.EmbeddingLookup mindspore.ops.Padding mindspore.ops.ResizeNearestNeighbor @@ -220,6 +221,7 @@ Image Processing mindspore.ops.IOU mindspore.ops.L2Normalize mindspore.ops.NMSWithMask + mindspore.ops.NonMaxSuppressionV3 mindspore.ops.NonMaxSuppressionWithOverlaps mindspore.ops.PSROIPooling mindspore.ops.RGBToHSV @@ -545,6 +547,7 @@ Array Operation mindspore.ops.ReverseSequence mindspore.ops.ReverseV2 mindspore.ops.RightShift + mindspore.ops.Roll mindspore.ops.ScatterAddWithAxis mindspore.ops.ScatterNd mindspore.ops.ScatterNdDiv diff --git a/mindspore/python/mindspore/ops/operations/image_ops.py b/mindspore/python/mindspore/ops/operations/image_ops.py index 243af43a67c..03487ef8570 100644 --- a/mindspore/python/mindspore/ops/operations/image_ops.py +++ b/mindspore/python/mindspore/ops/operations/image_ops.py @@ -722,7 +722,7 @@ class ResizeBilinearV2(Primitive): Examples: >>> x = Tensor([[[[1, 2, 3, 4, 5], [1, 2, 3, 4, 5]]]], mindspore.float32) - >>> output = ops.ResizeBilinearV2(x, (5, 5)) + >>> output = ops.ResizeBilinearV2()(x, (5, 5)) >>> print(output) [[[[1. 2. 3. 4. 5.] [1. 2. 3. 4. 5.]