Allow using C10_DECLARE_TENSOR_TYPE and C10_DEFINE_TENSOR_TYPE from any namespace...
authorSebastian Messmer <messmer@fb.com>
Thu, 21 Mar 2019 21:51:38 +0000 (14:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 21 Mar 2019 21:57:32 +0000 (14:57 -0700)
commit8b94de06afefbf81029e04ef23c189687bb7103b
treef493b866ca02dd2a70c1bf28d0feb9eac5cd6fa1
parentdaa77c6e269df04042dafdb5512ac239f90e5f31
Allow using C10_DECLARE_TENSOR_TYPE and C10_DEFINE_TENSOR_TYPE from any namespace (#18158)

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

They didn't work when called from other namespaces before because they didn't fully specify the c10 namespace.

Reviewed By: ezyang

Differential Revision: D14512187

fbshipit-source-id: a496b89a1bbe2b56137cfae03ab94a60f38d7068
c10/core/TensorTypeIdRegistration.h