Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add other api graph autotest #7091

Merged
merged 46 commits into from
Dec 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
6c20457
Clear tensor name scope after graph build
chengtbf Dec 21, 2021
b95619b
Add test case of 2 graph caught same free eager tensor
chengtbf Dec 21, 2021
0ba79a2
auto format by CI
oneflow-ci-bot Dec 21, 2021
a341e9f
Merge branch 'master' into dev_cc_clean_tensor_name_scope
chengtbf Dec 22, 2021
c3f3807
Merge branch 'master' into dev_cc_clean_tensor_name_scope
oneflow-ci-bot Dec 22, 2021
6ee513f
Merge branch 'master' into dev_cc_clean_tensor_name_scope
oneflow-ci-bot Dec 22, 2021
d33d51e
Merge branch 'master' into dev_cc_clean_tensor_name_scope
oneflow-ci-bot Dec 23, 2021
8e02d2f
add other api graph autotest
BBuf Dec 23, 2021
0156fa1
add more samples
BBuf Dec 23, 2021
8036d73
fix comments
BBuf Dec 23, 2021
d5789db
refine
BBuf Dec 23, 2021
be6f333
refine
BBuf Dec 23, 2021
e0f9e7a
refine
BBuf Dec 23, 2021
edd0dcb
refine
BBuf Dec 23, 2021
a17ca12
Merge branch 'master' into add_other_api_graph_autotest
BBuf Dec 23, 2021
355e6c4
refine
BBuf Dec 23, 2021
aaa89ad
Merge branch 'add_other_api_graph_autotest' of github.com:Oneflow-Inc…
BBuf Dec 23, 2021
bf71928
Merge branch 'master' into add_other_api_graph_autotest
BBuf Dec 23, 2021
27a3022
Merge branch 'master' into add_other_api_graph_autotest
lixiang007666 Dec 23, 2021
d8131db
fix error
BBuf Dec 23, 2021
9cb2834
Merge branch 'add_other_api_graph_autotest' of github.com:Oneflow-Inc…
BBuf Dec 23, 2021
656a73e
fix test error
BBuf Dec 23, 2021
ff5acc0
Merge branch 'master' into add_other_api_graph_autotest
BBuf Dec 24, 2021
fb99608
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
7c528c1
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
08731b4
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
5b63464
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
7772309
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
dfba9cb
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
03d857c
Merge branch 'master' into add_other_api_graph_autotest
BBuf Dec 24, 2021
9628c28
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
5038636
fix bug
BBuf Dec 24, 2021
55a6392
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 24, 2021
23fd900
fix flip bug
BBuf Dec 25, 2021
9f690ff
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 25, 2021
bf5ef1c
fix bug
BBuf Dec 25, 2021
fdd2044
Merge branch 'add_other_api_graph_autotest' of github.com:Oneflow-Inc…
BBuf Dec 25, 2021
2634b4b
Merge branch 'master' into add_other_api_graph_autotest
BBuf Dec 25, 2021
76a229a
fix bug
BBuf Dec 25, 2021
74b6113
fix ci bug
BBuf Dec 25, 2021
95af904
Merge branch 'add_other_api_graph_autotest' of github.com:Oneflow-Inc…
BBuf Dec 25, 2021
51ebe99
Merge branch 'master' into add_other_api_graph_autotest
oneflow-ci-bot Dec 25, 2021
4e47ae4
fix ci error
BBuf Dec 25, 2021
b0b4b62
Merge branch 'add_other_api_graph_autotest' of github.com:Oneflow-Inc…
BBuf Dec 25, 2021
291b6b0
fix bug
BBuf Dec 25, 2021
4e8aacd
fix ci error
BBuf Dec 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_abs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@flow.unittest.skip_unless_1n1d()
class TestAbsModule(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_abs_with_0shape_data(test_case):
device = random_device()
x = random_pytorch_tensor().to(device)
Expand Down
4 changes: 2 additions & 2 deletions python/oneflow/test/modules/test_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

@flow.unittest.skip_unless_1n1d()
class TestReLUModule(flow.unittest.TestCase):
@autotest()
@autotest(check_graph=True)
def test_relu_module_with_random_data(test_case):
m = torch.nn.ReLU()
m.train(random())
Expand All @@ -52,7 +52,7 @@ def test_relu_module_with_0shape_data(test_case):

@flow.unittest.skip_unless_1n1d()
class TestReLU6Module(flow.unittest.TestCase):
@autotest()
@autotest(check_graph=True)
def test_relu6_module_with_random_data(test_case):
m = torch.nn.ReLU6()
m.train(random())
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_0dim_two_inplace_add(test_case):
x += y.mean()
return x

@autotest(check_graph=False)
@autotest(check_graph=True)
BBuf marked this conversation as resolved.
Show resolved Hide resolved
def test_add_with_alpha(test_case):
device = random_device()
x1 = random_pytorch_tensor(2, 2, 3).to(device).mean()
Expand Down
4 changes: 2 additions & 2 deletions python/oneflow/test/modules/test_addmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_addmm(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_addmm_flow_with_random_data(test_case):
device = random_device()
input = random_pytorch_tensor(ndim=2, dim0=2, dim1=3).to(device)
Expand All @@ -82,7 +82,7 @@ def test_addmm_flow_with_random_data(test_case):
)
return y

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_addmm_broadcast_flow_with_random_data(test_case):
device = random_device()
input = random_pytorch_tensor(ndim=2, dim0=1, dim1=1).to(device)
Expand Down
4 changes: 2 additions & 2 deletions python/oneflow/test/modules/test_affine_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_affine_grid_3d(test_case):
np.allclose(output.numpy(), groundtruth, rtol=1e-3, atol=1e-4)
)

@autotest(rtol=1e-03, atol=1e-04, check_graph=False)
@autotest(rtol=1e-03, atol=1e-04, check_allclose=False, check_graph=True)
def test_flow_affine_grid_2d_with_random_data(test_case):
N = randint(1, 8)
C = randint(1, 8)
Expand All @@ -103,7 +103,7 @@ def test_flow_affine_grid_2d_with_random_data(test_case):
).to(device)
return output

@autotest(rtol=1e-03, atol=1e-03, check_graph=False)
@autotest(rtol=1e-03, atol=1e-03, check_allclose=False, check_graph=True)
def test_flow_affine_grid_3d_with_random_data(test_case):
N = randint(1, 8)
C = randint(1, 8)
Expand Down
4 changes: 2 additions & 2 deletions python/oneflow/test/modules/test_arange.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_arange(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(n=30, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=False)
@autotest(n=30, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=True)
def test_arange_with_random_data(test_case):
start = random().to(int)
end = start + random().to(int)
Expand All @@ -77,7 +77,7 @@ def test_arange_with_random_data(test_case):
x.to(device)
return x

@autotest(n=5, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=False)
@autotest(n=5, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=True)
def test_arange_with_float_delta(test_case):
start = random().to(int)
end = start + random().to(int)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_argmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_argmax(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(n=5, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=False)
@autotest(n=5, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=True)
def test_argmax_with_random_data(test_case):
device = random_device()
ndim = random(1, 6).to(int)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_autograd.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_autograd_interface(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(n=10, auto_backward=True, rtol=1e-3, atol=1e-3, check_graph=False)
@autotest(n=10, auto_backward=True, rtol=1e-3, atol=1e-3, check_graph=True)
def test_accumulate_grad(test_case):
device = random_device()
ndim = random(1, 4).to(int)
Expand Down
6 changes: 3 additions & 3 deletions python/oneflow/test/modules/test_constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ def test_flow_ones_list_with_random_data(test_case):
).to(device)
return y1, y2, y3, y4

@autotest(auto_backward=False, check_graph=False)
@autotest(auto_backward=False, check_graph=True)
def test_flow_zeros_like_list_with_random_data(test_case):
device = random_device()
x = random_pytorch_tensor().to(device)
y = torch.zeros_like(x)
return y

@autotest(auto_backward=False, check_graph=False)
@autotest(auto_backward=False, check_graph=True)
def test_flow_ones_like_list_with_random_data(test_case):
device = random_device()
x = random_pytorch_tensor().to(device)
y = torch.ones_like(x)
return y

@autotest(auto_backward=True, check_graph=False)
@autotest(auto_backward=True, check_graph=True)
def test_flow_new_ones_list_with_random_data(test_case):
device = random_device()
x = random_pytorch_tensor().to(device)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_constantpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_constantpad3d_with_random_data(test_case):

@flow.unittest.skip_unless_1n1d()
class TestFunctionalConstantPad2d(flow.unittest.TestCase):
@autotest(n=20, rtol=0.001, atol=0.001, check_graph=False)
@autotest(n=20, rtol=0.001, atol=0.001, check_graph=True)
def test_functional_constantpad2d(test_case):
device = random_device()
padding = random(-1, 6).to(_size_4_t)
Expand Down
4 changes: 2 additions & 2 deletions python/oneflow/test/modules/test_diag.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@

@flow.unittest.skip_unless_1n1d()
class Test_Diag_module(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_diag_one_dim(test_case):
device = random_device()
x = random_pytorch_tensor(ndim=1, dim0=random()).to(device)
return torch.diag(x)

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_diag_other_dim(test_case):
device = random_device()
x = random_pytorch_tensor(ndim=2, dim0=random(), dim1=random()).to(device)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

@flow.unittest.skip_unless_1n1d()
class TestDot(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_dot(test_case):
device = random_device()
k = random(1000, 10000)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_erf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

@flow.unittest.skip_unless_1n1d()
class TestErfModule(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_erf_with_random_data(test_case):
device = random_device()
x = random_pytorch_tensor().to(device)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_erfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

@flow.unittest.skip_unless_1n1d()
class TestErfcModule(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_erfc_with_random_data(test_case):
device = random_device()
x = random_pytorch_tensor().to(device)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_expand.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def random_expand(x, ndim, expand_size):

@flow.unittest.skip_unless_1n1d()
class TestExpand(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_tensor_expand_with_random_data(test_case):
random_expand_size = random(1, 6).to(int).value()
x = random_pytorch_tensor(ndim=5, dim0=1, dim1=1, dim2=1, dim3=1, dim4=1)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_cast(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flatten_module_with_random_data(test_case):
m = torch.nn.Flatten(
start_dim=random(1, 6) | nothing(), end_dim=random(1, 6) | nothing()
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_flip.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


class TestFlip(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=False, check_allclose=False)
def test_flow_flip_list_with_random_data(test_case):
device = random_device()
x = random_pytorch_tensor(
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_gather(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_gather_with_random_data(test_case):
device = random_device()
input = random_pytorch_tensor(ndim=4, dim1=3, dim2=4, dim3=5).to(device)
Expand Down
4 changes: 2 additions & 2 deletions python/oneflow/test/modules/test_glu.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_glu_module_with_random_data(test_case):
y = m(x, dim)
return y

@autotest(n=5)
def test_GLU_module_with_random_data(test_case):
@autotest(n=5, check_graph=True)
def test_glu_module_with_random_data(test_case):
device = random_device()
m = torch.nn.GLU()
m.train(random())
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_groupnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def test_groupnorm(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(rtol=1e-03, atol=1e-03, check_graph=False)
@autotest(rtol=1e-03, atol=1e-03, check_graph=True)
def test_group_norm_with_random_data(test_case):
channels = random(5, 20)
m = torch.nn.GroupNorm(
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def test_linear_with_random_data(test_case):
y = m(x)
return y

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_nn_functional_linear_with_random_data(test_case):
input_size = random()
device = random_device()
Expand Down
4 changes: 2 additions & 2 deletions python/oneflow/test/modules/test_linspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

@flow.unittest.skip_unless_1n1d()
class TestLinspace(flow.unittest.TestCase):
@autotest(n=30, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=False)
@autotest(n=30, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=True)
def test_linspace_int_with_random_data(test_case):
start = random().to(int)
end = start + random().to(int)
Expand All @@ -37,7 +37,7 @@ def test_linspace_int_with_random_data(test_case):
x.to(device)
return x

@autotest(n=30, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=False)
@autotest(n=30, auto_backward=False, rtol=1e-5, atol=1e-5, check_graph=True)
def test_linspace_float_with_random_data(test_case):
start = random()
end = start + random()
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_log1p.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

@flow.unittest.skip_unless_1n1d()
class TestLog1pModule(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_log1p_with_random_data(test_case):
device = random_device()
x = random_pytorch_tensor().to(device)
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_logical_and.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_scalar_logical_and(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(n=10, auto_backward=False, check_graph=False)
@autotest(n=10, auto_backward=False, check_graph=True)
def test_logical_and_with_random_data(test_case):
device = random_device()
shape = random_tensor().value().shape
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_logical_not.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_logical_not(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(n=10, auto_backward=False, check_graph=False)
@autotest(n=10, auto_backward=False, check_graph=True)
def test_logical_not_with_random_data(test_case):
device = random_device()
shape = random_tensor().value().shape
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_logical_or.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_scalar_logical_or(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(n=10, auto_backward=False, check_graph=False)
@autotest(n=10, auto_backward=False, check_graph=True)
def test_logical_or_with_random_data(test_case):
device = random_device()
shape = random_tensor().value().shape
Expand Down
2 changes: 1 addition & 1 deletion python/oneflow/test/modules/test_logical_xor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_scalar_logical_xor(test_case):
for arg in GenArgList(arg_dict):
arg[0](test_case, *arg[1:])

@autotest(n=10, auto_backward=False, check_graph=False)
@autotest(n=10, auto_backward=False, check_graph=True)
def test_logical_xor_with_random_data(test_case):
device = random_device()
shape = random_tensor().value().shape
Expand Down
6 changes: 3 additions & 3 deletions python/oneflow/test/modules/test_masked_fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

@flow.unittest.skip_unless_1n1d()
class TestMaskedFill(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_masked_fill_with_random_data(test_case):
k1 = random(2, 6)
k2 = random(2, 6)
Expand All @@ -36,7 +36,7 @@ def test_flow_masked_fill_with_random_data(test_case):
value = random().to(float)
return input.masked_fill(mask > 0, value)

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_masked_fill_broadcast_with_random_data(test_case):
k1 = random(2, 6)
k2 = random(2, 6)
Expand All @@ -46,7 +46,7 @@ def test_flow_masked_fill_broadcast_with_random_data(test_case):
value = random().to(float)
return input.masked_fill(mask > 0, value)

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_masked_fill_int_with_random_data(test_case):
k1 = random(2, 6)
k2 = random(2, 6)
Expand Down
6 changes: 3 additions & 3 deletions python/oneflow/test/modules/test_matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

@flow.unittest.skip_unless_1n1d()
class TestModule(flow.unittest.TestCase):
@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_matmul_with_random_data(test_case):
device = random_device()
k = random(1, 6)
Expand All @@ -33,15 +33,15 @@ def test_flow_matmul_with_random_data(test_case):
z = torch.matmul(x, y)
return z

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_tensor_matmul_with_random_data(test_case):
device = random_device()
k = random(1, 6)
x = random_pytorch_tensor(ndim=2, dim1=k).to(device)
y = random_pytorch_tensor(ndim=2, dim0=k).to(device)
return x.matmul(y)

@autotest(check_graph=False)
@autotest(check_graph=True)
def test_flow_tensor_broadcast_matmul_with_random_data(test_case):
device = random_device()
k = random(1, 6)
Expand Down
6 changes: 3 additions & 3 deletions python/oneflow/test/modules/test_maxpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def unpack_indices(dual_object):

@flow.unittest.skip_unless_1n1d()
class TestMaxPooling(flow.unittest.TestCase):
@autotest(auto_backward=False)
@autotest(auto_backward=False, check_graph=False)
def test_maxpool1d_with_random_data(test_case):
return_indices = random().to(bool).value()
m = torch.nn.MaxPool1d(
Expand All @@ -49,7 +49,7 @@ def test_maxpool1d_with_random_data(test_case):
else:
return y, y.sum().backward()

@autotest(auto_backward=False)
@autotest(auto_backward=False, check_graph=False)
def test_maxpool2d_with_random_data(test_case):
return_indices = random().to(bool).value()
m = torch.nn.MaxPool2d(
Expand All @@ -73,7 +73,7 @@ def test_maxpool2d_with_random_data(test_case):
else:
return y, y.sum().backward()

@autotest(auto_backward=False)
@autotest(auto_backward=False, check_graph=False)
def test_maxpool3d_with_random_data(test_case):
return_indices = random().to(bool).value()
m = torch.nn.MaxPool3d(
Expand Down
Loading