|
|
@@ -42,7 +42,7 @@ class TwoTensorsMinimum(Cell): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_constScalar_tensor_int(): |
|
|
def test_minimum_constScalar_tensor_int(): |
|
|
x = Tensor(np.array([[2, 3, 4], [100, 200, 300]]).astype(np.int32)) |
|
|
x = Tensor(np.array([[2, 3, 4], [100, 200, 300]]).astype(np.int32)) |
|
|
@@ -55,7 +55,7 @@ def test_minimum_constScalar_tensor_int(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_Not_Broadcast_int(): |
|
|
def test_minimum_two_tensors_Not_Broadcast_int(): |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
@@ -70,7 +70,7 @@ def test_minimum_two_tensors_Not_Broadcast_int(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_Broadcast_int(): |
|
|
def test_minimum_two_tensors_Broadcast_int(): |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
@@ -85,7 +85,7 @@ def test_minimum_two_tensors_Broadcast_int(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_Broadcast_oneDimension_int(): |
|
|
def test_minimum_two_tensors_Broadcast_oneDimension_int(): |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
@@ -100,7 +100,7 @@ def test_minimum_two_tensors_Broadcast_oneDimension_int(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_notBroadcast_all_oneDimension_int(): |
|
|
def test_minimum_two_tensors_notBroadcast_all_oneDimension_int(): |
|
|
x = Tensor(np.array([[2]]).astype(np.int32)) |
|
|
x = Tensor(np.array([[2]]).astype(np.int32)) |
|
|
@@ -114,7 +114,7 @@ def test_minimum_two_tensors_notBroadcast_all_oneDimension_int(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_notBroadcast_float32(): |
|
|
def test_minimum_two_tensors_notBroadcast_float32(): |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
@@ -132,7 +132,7 @@ def test_minimum_two_tensors_notBroadcast_float32(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_notBroadcast_float16(): |
|
|
def test_minimum_two_tensors_notBroadcast_float16(): |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
@@ -150,7 +150,7 @@ def test_minimum_two_tensors_notBroadcast_float16(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_Broadcast_float16(): |
|
|
def test_minimum_two_tensors_Broadcast_float16(): |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
@@ -168,7 +168,7 @@ def test_minimum_two_tensors_Broadcast_float16(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.level0 |
|
|
@pytest.mark.platform_x86_cpu_training |
|
|
|
|
|
|
|
|
@pytest.mark.platform_x86_cpu |
|
|
@pytest.mark.env_onecard |
|
|
@pytest.mark.env_onecard |
|
|
def test_minimum_two_tensors_notBroadcast_float64(): |
|
|
def test_minimum_two_tensors_notBroadcast_float64(): |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
prop = 100 if np.random.random() > 0.5 else -100 |
|
|
|