Shortcuts

Class OptionalTensorRef

Page Contents

Class Documentation

class OptionalTensorRef

Public Functions

OptionalTensorRef() = default
inline ~OptionalTensorRef()
inline OptionalTensorRef(const TensorBase &src)
inline OptionalTensorRef(const OptionalTensorRef &rhs)
inline OptionalTensorRef &operator=(OptionalTensorRef rhs)
inline bool has_value() const
inline const Tensor &getTensorRef() const &
inline const Tensor &operator*() const &
inline const Tensor *operator->() const &
inline 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