add support platform of ops/Tensor hypot

This commit is contained in:
fandawei 2023-02-01 15:55:15 +08:00
parent 1c0867d48b
commit b00f660009
4 changed files with 7 additions and 2 deletions

View File

@ -113,7 +113,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

@ -4466,7 +4466,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):