Skip to content

Commit

Permalink
[ONNX] Skip import test for experimental files (pytorch#94552)
Browse files Browse the repository at this point in the history
`torch.onnx._internal.fx` is experimental and is not imported when `import torch`/`import torch.onnx`.
Need to skip it in this test as it depends on `onnx-script`.
Pull Request resolved: pytorch#94552
Approved by: https://github.com/kit1980
  • Loading branch information
BowenBao authored and pytorchmergebot committed Feb 10, 2023
1 parent c620ece commit 889a464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,7 @@ def test_circular_dependencies(self) -> None:
"torch.contrib.", # something weird
"torch.testing._internal.distributed.", # just fails
"torch.ao.pruning._experimental.", # depends on pytorch_lightning, not user-facing
"torch.onnx._internal.fx", # depends on onnx-script
]
# See https://github.com/pytorch/pytorch/issues/77801
if not sys.version_info >= (3, 9):
Expand Down

0 comments on commit 889a464

Please sign in to comment.