[JIT] Add support for list()#33818
Conversation
[ghstack-poisoned]
|
There are a few bound |
[ghstack-poisoned]
💊 CircleCI build failures summary and remediationsAs of commit a273392 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following build failures do not appear to be due to upstream breakages:
|
Differential Revision: [D20121915](https://our.internmc.facebook.com/intern/diff/D20121915) [ghstack-poisoned]
| self.checkModule(M2(), (inp, name)) | ||
|
|
||
| def test_list_keyword(self): | ||
| def foo(): |
There was a problem hiding this comment.
Can you add a check for a bad input as well? e.g. that list(1) says something like Python's TypeError: 'int' object is not iterable
There was a problem hiding this comment.
there are tests that already do that like test_sum_list_wrong_type
Differential Revision: [D20121915](https://our.internmc.facebook.com/intern/diff/D20121915) [ghstack-poisoned]
Differential Revision: [D20121915](https://our.internmc.facebook.com/intern/diff/D20121915) [ghstack-poisoned]
Differential Revision: [D20121915](https://our.internmc.facebook.com/intern/diff/D20121915) [ghstack-poisoned]
Differential Revision: [D20121915](https://our.internmc.facebook.com/intern/diff/D20121915) [ghstack-poisoned]
Differential Revision: [D20121915](https://our.internmc.facebook.com/intern/diff/D20121915) [ghstack-poisoned]
Differential Revision: [D20121915](https://our.internmc.facebook.com/intern/diff/D20121915) [ghstack-poisoned]
|
|
|
Are you sure that’s related ? |
Summary: Fixes #40869 Resubmit of #33818. Adds support for `list()` by desugaring it to a list comprehension. Last time I landed this it made one of the tests slow, and got unlanded. I think that's bc the previous PR changed the emission of `list()` on a list input or a str input to a list comprehension, which is the more general way of emitting `list()`, but also a little bit slower. I updated this version to emit to the builtin operators for these two case. Hopefully it can land without being reverted this time... Pull Request resolved: #42382 Reviewed By: navahgar Differential Revision: D24767674 Pulled By: eellison fbshipit-source-id: a1aa3d104499226b28f47c3698386d365809c23c
Summary: Pull Request resolved: pytorch#33818 Test Plan: Imported from OSS Differential Revision: D20121915 Pulled By: eellison fbshipit-source-id: c6c4ef444dbf1d4134dccb28c13315e225945b64
Summary: Fixes pytorch#40869 Resubmit of pytorch#33818. Adds support for `list()` by desugaring it to a list comprehension. Last time I landed this it made one of the tests slow, and got unlanded. I think that's bc the previous PR changed the emission of `list()` on a list input or a str input to a list comprehension, which is the more general way of emitting `list()`, but also a little bit slower. I updated this version to emit to the builtin operators for these two case. Hopefully it can land without being reverted this time... Pull Request resolved: pytorch#42382 Reviewed By: navahgar Differential Revision: D24767674 Pulled By: eellison fbshipit-source-id: a1aa3d104499226b28f47c3698386d365809c23c
Stack from ghstack:
Differential Revision: D20121915