Warn about memory overlaps on expanded tensors (#17576)
authorzou3519 <zou3519@gmail.com>
Thu, 7 Mar 2019 01:37:13 +0000 (17:37 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 7 Mar 2019 01:44:04 +0000 (17:44 -0800)
commit68c5c66800a81a6bbba8800407f9468c1860dc81
treeaf87bf4c9436e85e71d154d5a715a839b7866a06
parent93768785ecc43009ec45305dec235e621fbb9150
Warn about memory overlaps on expanded tensors (#17576)

Summary:
Eventually we should remove these when we're certain that all our ops
handle memory overlaps correctly.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17576

Differential Revision: D14349990

Pulled By: zou3519

fbshipit-source-id: c3a09f6113b9b1bf93e7f13c0b426c45b2cdf21f
torch/_tensor_docs.py
torch/functional.py
torch/nn/functional.py