Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Static Public Member Functions
torch::jit::script::Maybe< T > Struct Template Reference
Inheritance diagram for torch::jit::script::Maybe< T >:

Public Member Functions

 Maybe (const TreeRef &tree)
 Maybe (const T &tree)
bool present () const
T get () const
TreeRef map (const std::function< TreeRef(const T &)> &fn)
- Public Member Functions inherited from torch::jit::script::TreeView
 TreeView (TreeRef tree)
TreeRef tree () const
const SourceRangerange () const
 operator TreeRef () const
const TreeRef & get () const
int kind () const
void dump () const

Static Public Member Functions

static Maybe< Tcreate (const SourceRange &range)
static Maybe< Tcreate (const SourceRange &range, const T &value)

Additional Inherited Members

- Protected Member Functions inherited from torch::jit::script::TreeView
const TreeRef & subtree (size_t i) const
- Protected Attributes inherited from torch::jit::script::TreeView
TreeRef tree_

Detailed Description

template<typename T>
struct torch::jit::script::Maybe< T >

Definition at line 192 of file tree_views.h.

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