Shortcuts

Template Struct ExclusivelyOwnedTraits< at::Tensor >

Page Contents

Struct Documentation

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

Public Types

using repr_type = at::Tensor
using pointer_type = at::Tensor*
using const_pointer_type = const at::Tensor*

Public Static Functions

repr_type nullRepr()
template<class ...Args>
repr_type createInPlace(Args&&... args)
repr_type moveToRepr(at::Tensor &&x)
void destroyOwned(at::Tensor &x)
at::Tensor take(at::Tensor &x)
pointer_type getImpl(repr_type &x)
const_pointer_type getImpl(const repr_type &x)

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