!73 【轻量级 PR】:update tests/st/ops/gpu/test_tensoradd.py.

Merge pull request !73 from VectorSL/N/A
This commit is contained in:
mindspore-ci-bot 2020-04-01 14:41:28 +08:00 committed by Gitee
commit d9830e8ad6
1 changed files with 3 additions and 5 deletions

View File

@ -25,10 +25,6 @@ from mindspore.common.parameter import Parameter
context.set_context(device_target='GPU')
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
class TensroAdd(nn.Cell):
def __init__(self):
super(TensroAdd, self).__init__()
@ -61,7 +57,9 @@ class TensroAdd(nn.Cell):
self.add(self.x, self.y), self.add(self.x1, self.y1), self.add(self.x2, self.y2),
self.add(self.x3, self.y3))
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_TensroAdd():
add = TensroAdd()
output = add()