Always synchronize src and dst streams when copying tensors (#16966)
authorShen Li <shenli@fb.com>
Wed, 27 Feb 2019 22:54:30 +0000 (14:54 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 27 Feb 2019 22:57:56 +0000 (14:57 -0800)
commit1154506533bfe9428600fd69fa2e71dd172b7fec
treed88ba0c549978237a4c378a44c34add135edc283
parent5f06dcc4d72487a4091ea124bdf061a89ca28845
Always synchronize src and dst streams when copying tensors (#16966)

Summary:
fixes #15568
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16966

Differential Revision: D14213144

Pulled By: mrshenli

fbshipit-source-id: 2fcf5e07895fde80b4aee72e2736b0def876d21f
aten/src/ATen/native/cuda/Copy.cu
test/test_cuda.py