Skip to content

Conversation

yanboliang
Copy link
Contributor

@yanboliang yanboliang commented Mar 21, 2023

Error message before this PR:

torch._dynamo.exc.Unsupported: missing: LOAD_ASSERTION_ERROR

After:

torch._dynamo.exc.Unsupported: assert with non-string message

cc @soumith @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire

args = (torch.Tensor([3, 4, 5]),)
with self.assertRaisesRegex(torch._dynamo.exc.Unsupported, "generic_jump"):
exported, _ = torch._dynamo.export(f, torch.Tensor([3, 4, 5]))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This exception is raised by export not assert, we don't support fstring.

@yanboliang yanboliang added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Mar 21, 2023
@yanboliang
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@yanboliang yanboliang deleted the assert branch March 22, 2023 04:57
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 23, 2023
… (#97297)

Error message before this PR:
```
torch._dynamo.exc.Unsupported: missing: LOAD_ASSERTION_ERROR
```
After:
```
torch._dynamo.exc.Unsupported: assert with non-string message
```

Pull Request resolved: pytorch/pytorch#97297
Approved by: https://github.com/tugsbayasgalan
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 27, 2023
… (#97297)

Error message before this PR:
```
torch._dynamo.exc.Unsupported: missing: LOAD_ASSERTION_ERROR
```
After:
```
torch._dynamo.exc.Unsupported: assert with non-string message
```

Pull Request resolved: pytorch/pytorch#97297
Approved by: https://github.com/tugsbayasgalan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants