Ensure there aren't variables in checked_tensor_unwrap, checked_tenso… (#15105)
authorGregory Chanan <gchanan@fb.com>
Wed, 12 Dec 2018 17:55:42 +0000 (09:55 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Dec 2018 17:58:03 +0000 (09:58 -0800)
commit68ad9ae5bebd9efab127fa99e2bafd6852bbd8ed
tree937e7839cc7ad6b7480d129f847f574cf8ab22ed
parent0ad39ec5c17864fc7aec2605c82fe82fba71e3c2
Ensure there aren't variables in checked_tensor_unwrap, checked_tenso… (#15105)

Summary:
…r_list_unwrap.

These functions use unsafeGetTensorImpl(), which doesn't work with Variables (in a silent way that may blow up later).
So let's do early checking.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15105

Reviewed By: ezyang

Differential Revision: D13429149

Pulled By: gchanan

fbshipit-source-id: b85f6f5b7cdb9a6dd0c40205b924c840a3920ba0
aten/src/ATen/Utils.h