Shortcuts

Template Struct MaybeOwnedTraits< at::Tensor >

Page Contents

Struct Documentation

template<>
struct c10::MaybeOwnedTraits<at::Tensor>

Public Types

using owned_type = at::Tensor
using borrow_type = at::Tensor

Public Static Functions

borrow_type createBorrow(const owned_type &from)
void assignBorrow(borrow_type &lhs, const borrow_type &rhs)
void destroyBorrow(borrow_type &toDestroy)
const owned_type &referenceFromBorrow(const borrow_type &borrow)
const owned_type *pointerFromBorrow(const borrow_type &borrow)
bool debugBorrowIsValid(const borrow_type &borrow)

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