Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Conversation

yanboliang
Copy link
Contributor

This comes from the discussion with @anijain2305 on if tensor.grad should be a TensorVariable, obviously the answer is YES. However, I found there are many places we wrap tensor as UserDefinedObjectVariable. We dig into this together and found FakeTensor was not considered as tensor type and wrap as tensor, which should be fixed.

@voznesenskym
Copy link
Contributor

This looks reasonable but I would do a quick double check with @eellison

@yanboliang yanboliang requested a review from eellison August 22, 2022 17:58
Copy link
Contributor

@eellison eellison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yanboliang yanboliang merged commit 4b212e1 into pytorch:main Aug 23, 2022
@yanboliang yanboliang deleted the fake branch August 23, 2022 00:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants