add env one card

This commit is contained in:
chenfei 2021-08-23 10:59:15 +08:00
parent a789221722
commit 303146dea6
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class BackwardNet(nn.Cell):
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard
def test_forward():
x = Tensor(np.array(1), mstype.int32)
y = Tensor(np.array(3), mstype.int32)
@ -74,6 +75,7 @@ def test_forward():
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard
def test_backward():
x = Tensor(np.array(1), mstype.int32)
y = Tensor(np.array(3), mstype.int32)