fix tensor advanced indexing with assignment (#14311)
authorMichael Suo <suo@fb.com>
Mon, 26 Nov 2018 20:02:09 +0000 (12:02 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 26 Nov 2018 20:10:48 +0000 (12:10 -0800)
commit2fa3c8327c807680c3be8ff90d7dada0ef2056be
tree7d381b29092dde45e4432b5af3518cf46395da17
parent80ba65e2f59808f0b0d22b823c1edbbca5a2c417
fix tensor advanced indexing with assignment (#14311)

Summary:
Fix a mishandling of `foo[a] = b` when `a` was a tensor. We were assigning to a copy of `foo`, not a view of it.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14311

Differential Revision: D13196109

Pulled By: suo

fbshipit-source-id: c929401fda7c4a27622d3fe2b11278b08a7f17f1
aten/src/ATen/core/interned_strings.h
test/test_jit.py
torch/csrc/jit/script/compiler.cpp