-
Notifications
You must be signed in to change notification settings - Fork 24.3k
TorchScript doesn't support input
keyword argument
#71994
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
Tentative high priority as this is blocking unnecessary code removal. |
Where is the equivalent python logic that allows both |
pytorch/tools/codegen/api/python.py Lines 235 to 239 in 31b3484
Note it doesn't allow both. The argument is only callable as |
Hmm, I mean the ideal state would would be to update the |
fixes: #71994 [ghstack-poisoned]
This PR allows TS schema_matching to match input arg with self for aten operators. This is because, operators in their functional form have input as paremeter instead of self. fixes: #71994 Differential Revision: [D34427556](https://our.internmc.facebook.com/intern/diff/D34427556) [ghstack-poisoned]
This PR allows TS schema_matching to match input arg with self for aten operators. This is because, operators in their functional form have input as paremeter instead of self. fixes: #71994 Differential Revision: [D34427556](https://our.internmc.facebook.com/intern/diff/D34427556) [ghstack-poisoned]
Summary: Pull Request resolved: #73253 This PR allows TS schema_matching to match input arg with self for aten operators. This is because, operators in their functional form have input as paremeter instead of self. fixes: #71994 Test Plan: Imported from OSS Reviewed By: gmagogsfm Differential Revision: D34427556 Pulled By: tugsbayasgalan fbshipit-source-id: 96c2340d605c59634bf6e37db1db6025d93a933a
Summary: Pull Request resolved: pytorch/pytorch#73253 This PR allows TS schema_matching to match input arg with self for aten operators. This is because, operators in their functional form have input as paremeter instead of self. fixes: pytorch/pytorch#71994 Test Plan: Imported from OSS Reviewed By: gmagogsfm Differential Revision: D34427556 Pulled By: tugsbayasgalan fbshipit-source-id: 96c2340d605c59634bf6e37db1db6025d93a933a (cherry picked from commit 45a593d73bc5e6308dd80a4a29afed8e318a0a1c)
Summary: Pull Request resolved: pytorch/pytorch#73253 This PR allows TS schema_matching to match input arg with self for aten operators. This is because, operators in their functional form have input as paremeter instead of self. fixes: pytorch/pytorch#71994 Test Plan: Imported from OSS Reviewed By: gmagogsfm Differential Revision: D34427556 Pulled By: tugsbayasgalan fbshipit-source-id: 96c2340d605c59634bf6e37db1db6025d93a933a (cherry picked from commit 45a593d73bc5e6308dd80a4a29afed8e318a0a1c)
Uh oh!
There was an error while loading. Please reload this page.
🐛 Describe the bug
TorchScript doesn't understand that the
self
argument in function schemas is renamed toinput
for the functional variant. So will fail wheninput
is passed as a keyword argument. For example:Which returns the following error:
Versions
cc @ezyang @gchanan @zou3519
The text was updated successfully, but these errors were encountered: