pytorch
a844809a - Test TensorTypeSet instead of autograd_meta_ for variable-ness. (#28543)

Commit
5 years ago
Test TensorTypeSet instead of autograd_meta_ for variable-ness. (#28543) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28543 By the current autograd_meta_ <=> type_set_ invariant (now explicitly documented in the right place!), these are equivalent. But when I introduce null autograd_meta_ optimization, they won't be equivalent anymore: TensorTypeSet is going to give me the right information no matter what. In the long run, this patch will be a wash, because everything will "be a variable" in the long term. But I am making this change now to make sure that the invariant actually holds. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Differential Revision: D18171157 Pulled By: ezyang fbshipit-source-id: cbba8fd5df9e6873a8757925db5f578fecbd2486
Author
Parents
Loading