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 test for torch.export.export #213

Merged
merged 2 commits into from
May 4, 2024
Merged

Conversation

jerryzh168
Copy link
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

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
Member

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

Copy link
Contributor Author

@jerryzh168 jerryzh168 May 3, 2024

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
15 checks passed
dbyoung18 pushed a commit to dbyoung18/ao that referenced this pull request Jul 31, 2024
Summary:
att

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

Reviewers:

Subscribers:

Tasks:

Tags:

Co-authored-by: Mark Saroufim <[email protected]>
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