Shortcuts

Template Struct MaybeOwnedTraits< at::Tensor >

Page Contents

Struct Documentation

template<>
struct MaybeOwnedTraits<at::Tensor>

Public Types

using owned_type = at::Tensor
using borrow_type = 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&)

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources