Skip to content

Enable jit tests on the CI #136

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

Merged
merged 5 commits into from
Aug 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion test/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
'cuda',
'distributed',
'distributions',
'jit',
'legacy_nn',
'multiprocessing',
'nccl',
Expand Down
4 changes: 4 additions & 0 deletions test/test_jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ def f(x, y):

@unittest.skipIf(IS_WINDOWS, "NYI: fuser support for Windows")
@unittest.skipIf(not RUN_CUDA, "fuser requires CUDA")
@skipIfRocm
def test_fusion_rand(self):
class M(torch.jit.ScriptModule):
__constants__ = ['d']
Expand Down Expand Up @@ -777,6 +778,7 @@ def broadcast(a, b):

@unittest.skipIf(IS_WINDOWS, "NYI: fuser support for Windows")
@unittest.skipIf(not RUN_CUDA_MULTI_GPU, "needs non-zero device")
@skipIfRocm
def test_fuse_last_device(self):
device = 'cuda:' + str(1)
x = torch.tensor([0.4], dtype=torch.float, device=device)
Expand Down Expand Up @@ -5831,6 +5833,7 @@ def forward(self, x):

self.checkTrace(Policy(), (torch.rand(1, 4),))

@skipIfRocm
def test_snli(self):
# TODO:
# 1) nn.LSTM is called as a Python function https://github.com/pytorch/pytorch/issues/8449
Expand Down Expand Up @@ -6077,6 +6080,7 @@ def test_directory(self):
export_type=torch.onnx.ExportTypes.DIRECTORY)
shutil.rmtree(d)

@skipIfRocm
def test_aten_fallback(self):
class ModelWithAtenNotONNXOp(nn.Module):
def forward(self, x, y):
Expand Down