3 #include <c10/core/TensorImpl.h> 4 #include <c10/core/UndefinedTensorImpl.h> 5 #include <c10/macros/Macros.h> 39 : impl_(std::move(impl)) {}
46 return std::move(impl_);
This is a minimal Tensor class for use in c10 code.
TensorTypeId type_id() const
Return the TensorTypeId corresponding to this Tensor.
Dynamic type ID of a Tensor argument.
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...