PyTorch
Loading...
Searching...
No Matches
Public Member Functions | List of all members
at::OptionalTensorRef Class Reference

#include <Tensor.h>

Public Member Functions

 OptionalTensorRef ()=default
 
 ~OptionalTensorRef ()
 
 OptionalTensorRef (const TensorBase &src)
 
 OptionalTensorRef (const OptionalTensorRef &rhs)
 
OptionalTensorRefoperator= (OptionalTensorRef rhs)
 
bool has_value () const
 
const TensorgetTensorRef () const &
 
const Tensoroperator* () const &
 
const Tensoroperator-> () const &
 
 operator bool () const
 

Constructor & Destructor Documentation

◆ OptionalTensorRef() [1/3]

at::OptionalTensorRef::OptionalTensorRef ( )
default

◆ ~OptionalTensorRef()

at::OptionalTensorRef::~OptionalTensorRef ( )
inline

◆ OptionalTensorRef() [2/3]

at::OptionalTensorRef::OptionalTensorRef ( const TensorBase src)
inline

◆ OptionalTensorRef() [3/3]

at::OptionalTensorRef::OptionalTensorRef ( const OptionalTensorRef rhs)
inline

Member Function Documentation

◆ getTensorRef()

const Tensor & at::OptionalTensorRef::getTensorRef ( ) const &
inline

◆ has_value()

bool at::OptionalTensorRef::has_value ( ) const
inline

◆ operator bool()

at::OptionalTensorRef::operator bool ( ) const
inline

◆ operator*()

const Tensor & at::OptionalTensorRef::operator* ( ) const &
inline

◆ operator->()

const Tensor * at::OptionalTensorRef::operator-> ( ) const &
inline

◆ operator=()

OptionalTensorRef & at::OptionalTensorRef::operator= ( OptionalTensorRef  rhs)
inline

The documentation for this class was generated from the following file: