Shortcuts

Class OptionalTensorRef

Page Contents

Class Documentation

class at::OptionalTensorRef

Public Functions

OptionalTensorRef() = default
~OptionalTensorRef()
OptionalTensorRef(const TensorBase &src)
OptionalTensorRef(const OptionalTensorRef &rhs)
OptionalTensorRef &operator=(OptionalTensorRef rhs)
bool has_value() const
const Tensor &getTensorRef() const &
const Tensor &operator*() const &
const Tensor *operator->() const &
operator bool() const

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