!48303 添加ops/Tensor hypot支持平台

Merge pull request !48303 from DavidFFFan/api_ops
This commit is contained in:
i-robot 2023-02-02 02:08:05 +00:00 committed by Gitee
commit a3c297405d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 7 additions and 2 deletions

View File

@ -114,7 +114,6 @@
mindspore.Tensor.expand_as
mindspore.Tensor.expand_dims
mindspore.Tensor.expm1
mindspore.Tensor.fill
mindspore.Tensor.flatten
mindspore.Tensor.flip
mindspore.Tensor.fliplr

View File

@ -4476,7 +4476,7 @@ def hypot(x, other):
ValueError: If shape of two inputs are not broadcastable.
Supported Platforms:
``CPU``
``Ascend`` ``GPU`` ``CPU``
Examples:
>>> x = Tensor(np.array([3., 5., 7.]))

View File

@ -30,6 +30,9 @@ class Net(nn.Cell):
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_cpu
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard
@pytest.mark.parametrize('mode', [ms.GRAPH_MODE, ms.PYNATIVE_MODE])
def test_hypot_normal(mode):

View File

@ -29,6 +29,9 @@ class Net(nn.Cell):
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_cpu
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard
@pytest.mark.parametrize('mode', [ms.GRAPH_MODE, ms.PYNATIVE_MODE])
def test_hypot_normal(mode):