Template Struct MaybeOwnedTraits< at::Tensor >¶
Defined in File TensorBody.h
Page Contents
Struct Documentation¶
-
template<>
struct MaybeOwnedTraits<at::Tensor>¶ -
Public Static Functions
-
static inline borrow_type createBorrow(const owned_type &from)¶
-
static inline void assignBorrow(borrow_type &lhs, const borrow_type &rhs)¶
-
static inline void destroyBorrow(borrow_type &toDestroy)¶
-
static inline const owned_type &referenceFromBorrow(const borrow_type &borrow)¶
-
static inline const owned_type *pointerFromBorrow(const borrow_type &borrow)¶
-
static inline bool debugBorrowIsValid(const borrow_type&)¶
-
static inline borrow_type createBorrow(const owned_type &from)¶