Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Static Public Member Functions
c10::OptionalType Struct Reference
Inheritance diagram for c10::OptionalType:
c10::SingleElementType< TypeKind::OptionalType, OptionalType > c10::Type

Public Member Functions

 DEFINE_IS_SUBCLASS (OptionalType)
 
bool isSubtypeOf (const TypePtr rhs) const override
 
std::string str () const override
 
std::string python_str () const override
 
TypePtr createWithContained (std::vector< TypePtr > contained_types) const override
 
- Public Member Functions inherited from c10::SingleElementType< TypeKind::OptionalType, OptionalType >
TypePtr getElementType () const
 
bool hasFreeVariables () const override
 
at::ArrayRef< TypePtr > containedTypes () const override
 
bool requires_grad () const override
 
bool operator== (const Type &rhs) const override
 
- Public Member Functions inherited from c10::Type
virtual bool isSubclass (const TypeKind kind) const =0
 
TypeKind kind () const
 
template<typename T >
std::shared_ptr< Tcast ()
 
template<typename T >
std::shared_ptr< const Tcast () const
 
template<typename T >
std::shared_ptr< Texpect ()
 
template<typename T >
std::shared_ptr< const Texpect () const
 
TypePtr withContained (std::vector< TypePtr > contained_types)
 

Static Public Member Functions

static OptionalTypePtr create (TypePtr element)
 
static OptionalTypePtr ofTensor ()
 

Additional Inherited Members

- Static Public Attributes inherited from c10::SingleElementType< TypeKind::OptionalType, OptionalType >
static const TypeKind Kind
 
- Protected Member Functions inherited from c10::SingleElementType< TypeKind::OptionalType, OptionalType >
 SingleElementType (TypePtr elem)
 
- Protected Member Functions inherited from c10::Type
 Type (TypeKind kind)
 

Detailed Description

Definition at line 226 of file jit_type.h.


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