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

Public Types

using iterator = ListIterator< T >
using const_iterator = ListIterator< T >

Public Member Functions

 List (const TreeRef &tree)
iterator begin () const
iterator end () const
bool empty () const
T operator[] (size_t i) const
TreeRef map (const std::function< TreeRef(const T &)> &fn)
size_t size () const
- 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 List create (const SourceRange &range, const std::vector< T > &subtrees)
static List unsafeCreate (const SourceRange &range, TreeList &&subtrees)

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::List< T >

Definition at line 153 of file tree_views.h.

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