Skip to content

Commit

Permalink
Update test_add.py
Browse files Browse the repository at this point in the history
format
  • Loading branch information
L-Xiafeng authored Jun 26, 2023
1 parent af6bf78 commit 59384ee
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions python/oneflow/test/modules/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def test_add(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])


@autotest(n=10)
def test_0_size_add(test_case):
device = random_device()
Expand All @@ -199,7 +198,6 @@ def test_0_size_add(test_case):
out = x + y
return out


@autotest(n=6, auto_backward=False)
def test_0dim_inplace_add(test_case):
device = random_device()
Expand All @@ -208,7 +206,6 @@ def test_0dim_inplace_add(test_case):
x += y.mean()
return x


@autotest(n=10)
def test_0dim_two_inplace_add(test_case):
device = random_device()
Expand All @@ -217,7 +214,6 @@ def test_0dim_two_inplace_add(test_case):
x += y.mean()
return x


@autotest(n=6)
def test_add_with_alpha(test_case):
device = random_device()
Expand Down Expand Up @@ -264,7 +260,6 @@ def test_0dim_two_inplace_add(test_case):
return x
x += y.mean().to(torch.bool)


@autotest(n=6)
def test_add_with_alpha_0dim(test_case):
device = random_device()
Expand All @@ -284,7 +279,6 @@ def profile_add(test_case):
torch.add(torch.ones(100), 20)
torch.add(torch.ones(100), torch.ones(100, 1), alpha=10)


@autotest(n=6)
def test_non_contiguous_inplace_add(test_case):
device = random_device()
Expand All @@ -294,7 +288,6 @@ def test_non_contiguous_inplace_add(test_case):
y += random_tensor(2, 2, 2).to(device)
return y


@autotest(n=10)
def test_scalar_add_with_random_devices(test_case):
x1_device = random_device()
Expand Down

0 comments on commit 59384ee

Please sign in to comment.