Skip to content

Add test for torch.export.export#213

Merged
jerryzh168 merged 2 commits into
pytorch:mainfrom
jerryzh168:export_test
May 4, 2024
Merged

Add test for torch.export.export#213
jerryzh168 merged 2 commits into
pytorch:mainfrom
jerryzh168:export_test

Conversation

@jerryzh168

Copy link
Copy Markdown
Contributor

Summary:
att

Test Plan:
python test/integration/test_integration/py -k TestExport

Reviewers:

Subscribers:

Tasks:

Tags:

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 3, 2024
Comment thread test/integration/test_integration.py Outdated

if test_device == "cuda" and not torch.cuda.is_available():
self.skipTest(f"Need CUDA available.")
if test_device == "cuda" and torch.cuda.is_available() and test_dtype == torch.bfloat16 and torch.cuda.get_device_capability() < (8, 0):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more of a nit but can you move these to the top of the function with unittest.skipif() I'm not used to reading a function to figure out what gets skipped

@jerryzh168 jerryzh168 May 3, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, these are kind of deepened on the args, we do have a (brutal) helper function that does this, but I need to think about how we can make that more robust: https://github.com/pytorch/ao/blob/main/test/integration/test_integration.py#L98

I can refactor this one to use that helper for now though

Summary:
att

Test Plan:
python test/integration/test_integration/py -k TestExport

Reviewers:

Subscribers:

Tasks:

Tags:
@jerryzh168 jerryzh168 merged commit 1b8a0a8 into pytorch:main May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants