Skip to content

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented May 11, 2019

As part of the Variable/Tensor merge, we allow passing Tensor with AutogradMeta into ATen ops, but we want to make sure they are not treated as Variables (i.e. their is_variable() is false). This PR makes the necessary change to make this work.

@yf225 yf225 requested a review from gchanan May 11, 2019 04:49
@pytorchbot pytorchbot added the module: internals Related to internal abstractions in c10 and ATen label May 11, 2019
@yf225 yf225 mentioned this pull request May 11, 2019
22 tasks
@yf225
Copy link
Contributor Author

yf225 commented May 11, 2019

@pytorchbot retest this please

[static_cast<int>(Backend::NumOptions)];
};

CAFFE2_API LegacyTypeDispatch& globalLegacyTypeDispatch();
Copy link
Contributor

Choose a reason for hiding this comment

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

It won't let me put a comment there, but can you remove the at::NonVariableTypeMode::is_enabled() call from initializeLegacyTypeDispatchFor and legacyTensorType? Also expunge other call sites that are called in conjunction with is_variable()

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@yf225 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@yf225 merged this pull request in 3a0b27b.

zdevito pushed a commit to zdevito/ATen that referenced this pull request May 14, 2019
…le() (#20392)

Summary:
As part of the Variable/Tensor merge, we allow passing Tensor with AutogradMeta into ATen ops, but we want to make sure they are not treated as Variables (i.e. their `is_variable()` is false). This PR makes the necessary change to make this work.
Pull Request resolved: pytorch/pytorch#20392

Differential Revision: D15321899

Pulled By: yf225

fbshipit-source-id: c2ab09db73c63bd71ba2d8391095f4d6b4240a9a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants