pytorch / pytorch/pytorch

[dynamo] Investigate why we create VariableTrackers for only sourceful objects in UserDefinedClassVariable

Open
#175,264 0 comments 0 reactions 1 assignee Claimed by @azahed98 View on GitHub
module: dynamo oncall: pt2 triaged
Dominant language
Python
Stars
103k
Forks
29.5k
PR merge metrics
PR metrics pending

Description

### 🐛 Describe the bug

This section is guarded on if `source` - but its unclear why

https://github.com/pytorch/pytorch/blob/f91f262275e12bd6249a2bcd2c3c06e0c78e20ee/torch/_dynamo/variables/user_defined.py#L335-L347

This issue is a placeholder to understand why.

### Error logs

_No response_

### Versions

NA

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @amjames @Lucaskabela @jataylo

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.