From de025bd2286dc62d6fe8204edb4b60d7aa49efc5 Mon Sep 17 00:00:00 2001 From: yanzhenxiang2020 Date: Fri, 25 Jun 2021 17:58:30 +0800 Subject: [PATCH] fix cpu ops example --- mindspore/ops/operations/array_ops.py | 6 +++--- mindspore/ops/operations/math_ops.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mindspore/ops/operations/array_ops.py b/mindspore/ops/operations/array_ops.py index 1a284f9be1b..d4c164a9e85 100644 --- a/mindspore/ops/operations/array_ops.py +++ b/mindspore/ops/operations/array_ops.py @@ -3671,7 +3671,7 @@ class TensorScatterUpdate(PrimitiveWithInfer): ValueError: If the value of `input_x` are not match with input `indices`. Supported Platforms: - ``Ascend`` ``GPU`` + ``Ascend`` ``GPU`` ``CPU`` Examples: >>> input_x = Tensor(np.array([[-0.1, 0.3, 3.6], [0.4, 0.5, -3.2]]), mindspore.float32) @@ -4656,7 +4656,7 @@ class SpaceToDepth(PrimitiveWithInfer): ValueError: If length of shape of `x` is not equal to 4. Supported Platforms: - ``Ascend`` ``GPU`` + ``Ascend`` ``GPU`` ``CPU`` Examples: >>> x = Tensor(np.random.rand(1,3,2,2), mindspore.float32) @@ -4725,7 +4725,7 @@ class DepthToSpace(PrimitiveWithInfer): ValueError: If length of shape of `x` is not equal to 4. Supported Platforms: - ``Ascend`` ``GPU`` + ``Ascend`` ``GPU`` ``CPU`` Examples: >>> x = Tensor(np.random.rand(1, 12, 1, 1), mindspore.float32) diff --git a/mindspore/ops/operations/math_ops.py b/mindspore/ops/operations/math_ops.py index 4ea4a24eea9..a3b0f8ef669 100644 --- a/mindspore/ops/operations/math_ops.py +++ b/mindspore/ops/operations/math_ops.py @@ -4167,11 +4167,11 @@ class Atanh(PrimitiveWithInfer): ``Ascend`` ``CPU`` Examples: - >>> x = Tensor(np.array([1.047, 0.785]), mindspore.float32) + >>> x = Tensor(np.array([0, -0.5]), mindspore.float32) >>> atanh = ops.Atanh() >>> output = atanh(x) >>> print(output) - [1.8869909 1.058268 ] + [0. -0.54930614] """ @prim_attr_register @@ -4526,7 +4526,7 @@ class Eps(PrimitiveWithInfer): Tensor, has the same type and shape as `x`, but filled with `x` dtype minimum val. Supported Platforms: - ``Ascend`` ``GPU`` + ``Ascend`` ``GPU`` ``CPU`` Examples: >>> x = Tensor([4, 1, 2, 3], mindspore.float32)