PyTorch
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
c10::OptionalArray< T > Struct Template Reference

#include <ivalue.h>

Public Member Functions

 OptionalArray ()=default
 
 OptionalArray (std::vector< T > val)
 
OptionalArrayoperator= (c10::optional< ArrayRef< T > > ref)
 
OptionalArrayoperator= (c10::OptionalArrayRef< T > ref)
 
 operator c10::optional< c10::ArrayRef< T > > ()
 
 operator c10::OptionalArrayRef< T > ()
 

Public Attributes

c10::optional< std::vector< T > > list
 

Constructor & Destructor Documentation

◆ OptionalArray() [1/2]

template<typename T >
c10::OptionalArray< T >::OptionalArray ( )
default

◆ OptionalArray() [2/2]

template<typename T >
c10::OptionalArray< T >::OptionalArray ( std::vector< T >  val)
inline

Member Function Documentation

◆ operator c10::optional< c10::ArrayRef< T > >()

template<typename T >
c10::OptionalArray< T >::operator c10::optional< c10::ArrayRef< T > > ( )
inline

◆ operator c10::OptionalArrayRef< T >()

template<typename T >
c10::OptionalArray< T >::operator c10::OptionalArrayRef< T > ( )
inline

◆ operator=() [1/2]

template<typename T >
OptionalArray & c10::OptionalArray< T >::operator= ( c10::optional< ArrayRef< T > >  ref)
inline

◆ operator=() [2/2]

template<typename T >
OptionalArray & c10::OptionalArray< T >::operator= ( c10::OptionalArrayRef< T >  ref)
inline

Member Data Documentation

◆ list

template<typename T >
c10::optional<std::vector<T> > c10::OptionalArray< T >::list

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