3 #include <c10/core/TensorImpl.h> 16 static constexpr
inline TensorImpl * singleton() {
22 int64_t size(int64_t d)
const override;
23 int64_t stride(int64_t d)
const override;
24 int64_t dim()
const override;
25 bool has_storage()
const override;
26 const Storage& storage()
const override;
27 int64_t storage_offset()
const override;
32 friend struct UndefinedType;
The low-level representation of a tensor, which contains a pointer to a storage (which contains the a...
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...