-
Notifications
You must be signed in to change notification settings - Fork 124
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
Debug TorchScript error for Slomo #95
Comments
eellison
pushed a commit
to pytorch/pytorch
that referenced
this issue
Mar 25, 2022
… arbitrary types" As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 [ghstack-poisoned]
eellison
pushed a commit
to pytorch/pytorch
that referenced
this issue
Mar 25, 2022
… arbitrary types" As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 [ghstack-poisoned]
eellison
pushed a commit
to pytorch/pytorch
that referenced
this issue
Mar 25, 2022
… arbitrary types" As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 [ghstack-poisoned]
eellison
pushed a commit
to pytorch/pytorch
that referenced
this issue
Mar 28, 2022
…to be matched to arbitrary types" As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 [ghstack-poisoned]
eellison
pushed a commit
to pytorch/pytorch
that referenced
this issue
Mar 28, 2022
… arbitrary types" As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 [ghstack-poisoned]
eellison
pushed a commit
to pytorch/pytorch
that referenced
this issue
Apr 5, 2022
…to be matched to arbitrary types" As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 Differential Revision: [D35362760](https://our.internmc.facebook.com/intern/diff/D35362760) [ghstack-poisoned]
eellison
pushed a commit
to pytorch/pytorch
that referenced
this issue
Apr 5, 2022
… arbitrary types" As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 Differential Revision: [D35362760](https://our.internmc.facebook.com/intern/diff/D35362760) [ghstack-poisoned]
18 tasks
facebook-github-bot
pushed a commit
to pytorch/pytorch
that referenced
this issue
Apr 6, 2022
…types (#74768) Summary: Pull Request resolved: #74768 As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 Test Plan: Imported from OSS Reviewed By: ejguan Differential Revision: D35362760 Pulled By: eellison fbshipit-source-id: da23e8889312001b60d64a1758da5c578b6fe5ea
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this issue
Apr 6, 2022
…types (#74768) Summary: Pull Request resolved: #74768 As commented in code: ``` // Empty List Literals that are not assigned to variables // may match to any list type in schema matching, // but still default to List[Tensor] if assigned to a variable // or returned from a function // Restricting empty list matching to temporary values // avoids difficult to handle cases such as // a = [] // b = a // if cond: // b.append(2) // else: // a.append("hi") // This is also the same behavior that C++ allows with {} // (cannot assign to a variable typed as auto) ``` Fix for pytorch/torchdynamo#95 Test Plan: Imported from OSS Reviewed By: ejguan Differential Revision: D35362760 Pulled By: eellison fbshipit-source-id: da23e8889312001b60d64a1758da5c578b6fe5ea (cherry picked from commit 75682f1)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cc @eellison Repro for the bug while running TorchDynamo + AOTAutograd with Torchscript
It seems like, torchscript expects the default values for
torch.ops.aten.avg_pool2d_backward
to be present.The error can be repro by -
python torchbench.py --training --devices=cuda --accuracy-aot-ts --only=Super_SloMo
The text was updated successfully, but these errors were encountered: