Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
torch::jit::script::Tree Struct Reference
Inheritance diagram for torch::jit::script::Tree:
torch::jit::script::Compound torch::jit::script::String

Public Member Functions

 Tree (int kind_)
 
int kind () const
 
virtual bool isAtom () const
 
virtual const SourceRangerange () const
 
virtual const std::string & stringValue () const
 
virtual const TreeList & trees () const
 
const TreeRef & tree (size_t i) const
 
virtual TreeRef map (const std::function< TreeRef(TreeRef)> &fn)
 
template<typename... Args>
void match (int k, Args &...args)
 
template<typename... Args>
void matchD (int k, const char *filename, int lineno, Args &...args)
 
void matchNumSubtrees (int k, size_t expected_subtrees)
 
void matchNumSubtreesD (int k, const char *filename, int lineno, size_t expected_subtrees, bool allow_more)
 

Detailed Description

Definition at line 35 of file tree.h.


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