Remove TensorImpl -> context_base dependency (#14658)
authorSebastian Messmer <messmer@fb.com>
Sat, 8 Dec 2018 00:18:20 +0000 (16:18 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 8 Dec 2018 00:23:46 +0000 (16:23 -0800)
commit65aa11a8765af1908caecc9d52ec3ae96f3016b6
tree72be82f98f4183b2abfec0e9b73e12246c0b4a6e
parent086a37876b0b04f5ee87e260571148f5b84f91f8
Remove TensorImpl -> context_base dependency (#14658)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14658

Remove this dependency by moving at::CopyBytes to c10.
The implementations for at::CopyBytes will have to live in aten/caffe2 for now because they're not unified for CUDA yet.
They'll be moved into c10/backend/xxx later.

Reviewed By: dzhulgakov

Differential Revision: D13288655

fbshipit-source-id: 1c92379345308b3cd39a402779d7b7999613fc0d
aten/src/ATen/core/TensorImpl.h
aten/src/ATen/core/context_base.cpp
aten/src/ATen/core/context_base.h
c10/core/CopyBytes.cpp [new file with mode: 0644]
c10/core/CopyBytes.h [new file with mode: 0644]