-
Notifications
You must be signed in to change notification settings - Fork 127
Debug issue with tacotron2 #82
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
Comments
The error message here is:
|
Repro here
The generated FX graph is this
For some reason, the generated FX graph has |
This sounds like an upstream bug in pytorch. The issue is:
I bet the following monkey patch will fix it:
|
Ah, its because of the overloading of the variable function https://github.com/pytorch/pytorch/blob/master/torch/autograd/__init__.py#L298-L300 |
It is a bug in upstream PyTorch. But, given that I suggest to change the tacotron model to use Tensors instead of Variables - https://github.com/pytorch/benchmark/blob/main/torchbenchmark/models/tacotron2/model.py#L270-L285. What do you think? @jansel Unless the suggested change is just to add that single monkey-patch line in PyTorch
|
I'd just add the following to
|
We could the patch on our codebase. |
Fixes pytorch/torchdynamo#82 There is a `torch.auotgrad.variable` function which conflicts with the module class `torch.autograd.variable.Variable`. @jansel Pull Request resolved: #76079 Approved by: https://github.com/jansel, https://github.com/albanD
Summary: Fixes pytorch/torchdynamo#82 There is a `torch.auotgrad.variable` function which conflicts with the module class `torch.autograd.variable.Variable`. jansel Pull Request resolved: #76079 Approved by: https://github.com/jansel, https://github.com/albanD Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/0bbcac58e3b9d3360e26fc1ce26d992c6e0eb103 Reviewed By: seemethere Differential Revision: D35850009 Pulled By: anijain2305 fbshipit-source-id: 61d0d2f9ceedfcb2faed6709c58c5d60dbcea1b4
Uh oh!
There was an error while loading. Please reload this page.
tacotron2 was recently added to torchbench with get_module() support, and it seems it does not work properly.
@anijain2305 reported an error running
I haven't had a chance to look into this one yet, but creating an issue so that it does not get lost. Feel free to add more details @anijain2305.
The text was updated successfully, but these errors were encountered: