8000 [Dynamo] [SetSubclass] Add support for user defined sets by guilhermeleobas · Pull Request #153553 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[Dynamo] [SetSubclass] Add support for user defined sets #153553

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

Closed
Closed
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8b218a1
Update
guilhermeleobas May 14, 2025
40a20d8
Update
guilhermeleobas May 14, 2025
979a4a6
Update
guilhermeleobas May 14, 2025
55fc909
Update
guilhermeleobas May 15, 2025
4a9f50c
Update
guilhermeleobas May 15, 2025
1017121
Update
guilhermeleobas May 16, 2025
31a1eed
Update
guilhermeleobas May 16, 2025
5d89878
Update
guilhermeleobas May 18, 2025
d233af9
Update
guilhermeleobas May 19, 2025
241f17a
Update
guilhermeleobas May 19, 2025
b2f3e64
Update
guilhermeleobas May 19, 2025
101fc06
Update
guilhermeleobas May 19, 2025
aef308d
Update
guilhermeleobas May 19, 2025
aed3fd6
Update
guilhermeleobas May 19, 2025
55f8966
Update
guilhermeleobas May 21, 2025
8f3380c
Update
guilhermeleobas May 21, 2025
e62b734
Update
guilhermeleobas May 22, 2025
6addc3e
Update
guilhermeleobas May 23, 2025
7a1181e
Update
guilhermeleobas May 23, 2025
4f72999
Update
guilhermeleobas May 23, 2025
ac39de3
Update
guilhermeleobas May 23, 2025
494be7b
Update
guilhermeleobas May 26, 2025
3fabd43
Update
guilhermeleobas May 26, 2025
0af5467
Update
guilhermeleobas May 26, 2025
b37a2dd
Update
guilhermeleobas May 28, 2025
8742f91
Update
guilhermeleobas May 28, 2025
6fbba72
Update
guilhermeleobas May 28, 2025
c4ab283
Update
guilhermeleobas May 28, 2025
f4ebcd4
Update
guilhermeleobas May 29, 2025
850c37d
Update
guilhermeleobas May 29, 2025
62459ed
Update
guilhermeleobas Jun 3, 2025
94c2c2c
Update
guilhermeleobas Jun 3, 2025
75934a7
Update
guilhermeleobas Jun 4, 2025
ce66d15
Update
guilhermeleobas Jun 4, 2025
fbedb49
Update
guilhermeleobas Jun 6, 2025
5e9d638
Update
guilhermeleobas Jun 11, 2025
a74ae9e
Update
guilhermeleobas Jun 12, 2025
375e262
Update
guilhermeleobas Jun 12, 2025
f36a906
Update
guilhermeleobas Jun 20, 2025
be18eef
Update
guilhermeleobas Jun 20, 2025
ff7ebff
Update
guilhermeleobas Jun 25, 2025
370cdc2
Update
guilhermeleobas Jun 25, 2025
acaf232
Update
guilhermeleobas Jun 26, 2025
e6cb428
Update
guilhermeleobas Jun 26, 2025
b4eda4e
Update
guilhermeleobas Jun 27, 2025
d13d45a
Update
guilhermeleobas Jun 27, 2025
f8a66ab
Update
guilhermeleobas Jun 27, 2025
51b4eab
Update
guilhermeleobas Jun 27, 2025
1e1ed92
Update
guilhermeleobas Jun 30, 2025
ad5db26
Update
guilhermeleobas Jun 30, 2025
5f74994
Update
guilhermeleobas Jul 2, 2025
2f2f016
Update
guilhermeleobas Jul 2, 2025
b4e31f9
Update
guilhermeleobas Jul 3, 2025
f37890a
Update
guilhermeleobas Jul 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
guilhermeleobas committed May 15, 2025
commit 55fc90921bf12fb83e5daf12aad1f3f608a06146
14 changes: 0 additions & 14 deletions torch/_dynamo/variables/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,6 @@ def build_key_value(i, k, v):
return var
elif istype(value, set):
self.install_guards(GuardBuilder.TYPE_MATCH)
self.install_guards(GuardBuilder.EQUALS_MATCH)

# The dictionary gives a ordering for the set items
d = dict.fromkeys(value)
Expand Down Expand Up @@ -1411,19 +1410,6 @@ def build_key_value(i, k, v):
value, tuple_vt=tuple_vt, source=self.source
)
return self.tx.output.side_effects.track_object_existing(value, result)
elif isinstance(value, set) and type(value).__new__ is set.__new__:
self.install_guards(GuardBuilder.TYPE_MATCH)
self.install_guards(GuardBuilder.SEQUENCE_LENGTH)
d = dict.fromkeys(value)
items = [
LazyVariableTracker.create(v, source=SetItemKeySource(self.source, i))
for i, v in enumerate(d.keys())
]
set_vt = SetVariable(
items, source=self.source, mutation_type=ValueMutationExisting()
)
result = UserDefinedSetVariable(value, set_vt, source=self.source)
return self.tx.output.side_effects.track_object_existing(value, result)
elif isinstance(value, list):
self.install_guards(GuardBuilder.TYPE_MATCH)
self.install_guards(GuardBuilder.SEQUENCE_LENGTH)
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0