Shortcuts

Struct WeakIValue

Page Contents

Struct Documentation

struct WeakIValue

Public Functions

WeakIValue() = default
inline WeakIValue(const WeakIValue &rhs)
inline WeakIValue(const IValue &rhs)
inline WeakIValue(WeakIValue &&rhs) noexcept
inline ~WeakIValue()
inline WeakIValue &operator=(WeakIValue &&rhs) & noexcept
inline WeakIValue &operator=(WeakIValue const &rhs) &
inline void swap(WeakIValue &rhs) noexcept
inline bool isSameIdentity(const WeakIValue &rhs) const
inline IValue lock() const
inline size_t use_count() const noexcept
inline size_t weak_use_count() const noexcept
inline size_t hash() 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