Introduce backend extensions (overriding operators on custom backends)
authorRoy Li <royboy@fb.com>
Fri, 1 Feb 2019 18:55:00 +0000 (10:55 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 1 Feb 2019 19:00:16 +0000 (11:00 -0800)
commit7e642dfff3a4bbf80826f331312acff2672a3e02
tree2b8499a1824bf467cfb152ec1089be517bcae520
parent64186e06eccad8721cfa741cae31a39842a3dfe3
Introduce backend extensions (overriding operators on custom backends)

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

Reviewed By: gchanan

Differential Revision: D13445571

fbshipit-source-id: 62e2ebe0a6e81c4983b47cddb57ee5eb78e96708
17 files changed:
aten/src/ATen/core/Type.h
aten/src/ATen/function_wrapper.py
aten/src/ATen/gen.py
aten/src/ATen/templates/ExtensionBackendRegistration.h [new file with mode: 0644]
aten/src/ATen/templates/TypeExtension.cpp [new file with mode: 0644]
aten/src/ATen/templates/TypeExtension.h [new file with mode: 0644]
aten/src/ATen/test/CMakeLists.txt
aten/src/ATen/test/extension_backend_test.cpp [new file with mode: 0644]
aten/tools/run_tests.sh
c10/core/Backend.h
c10/core/DeviceType.cpp
c10/core/DeviceType.h
c10/core/TensorImpl.h
c10/core/TensorOptions.h
c10/core/TensorTypeIdRegistration.cpp
c10/core/TensorTypeIdRegistration.h
caffe2/proto/caffe2.proto