Tenncor
Public Member Functions | Public Attributes | List of all members
opt::Matcher Struct Referencefinal

#include <matcher.hpp>

Inheritance diagram for opt::Matcher:
Inheritance graph
[legend]
Collaboration diagram for opt::Matcher:
Collaboration graph
[legend]

Public Member Functions

 Matcher (void)=default
 
 Matcher (const VoterPool &voters)
 
void visit (teq::iLeaf *leaf) override
 Implementation of iTraveler. More...
 
void visit (teq::iFunctor *func) override
 Implementation of iTraveler. More...
 
- Public Member Functions inherited from teq::iTraveler
virtual ~iTraveler (void)=default
 

Public Attributes

VoterPool voters_
 Conversion voters to identify candidates. More...
 
std::unordered_map< teq::iTensor *, CandsTcandidates_
 Map real TEQ tensors to candidates identified as TEQ graph is visited. More...
 
tag::SubgraphAssocsT group_head_
 Root of grouped subgraphs. More...
 
std::function< std::string(teq::iTensor *)> scalarize_
 Function that returns constant representation of tensor. More...
 

Detailed Description

Approach: we have matcher, voters, and candidates

Constructor & Destructor Documentation

◆ Matcher() [1/2]

opt::Matcher::Matcher ( void  )
default

◆ Matcher() [2/2]

opt::Matcher::Matcher ( const VoterPool voters)
inline

Member Function Documentation

◆ visit() [1/2]

void opt::Matcher::visit ( teq::iLeaf leaf)
inlineoverridevirtual

Implementation of iTraveler.

Implements teq::iTraveler.

◆ visit() [2/2]

void opt::Matcher::visit ( teq::iFunctor func)
inlineoverridevirtual

Implementation of iTraveler.

Implements teq::iTraveler.

Member Data Documentation

◆ candidates_

std::unordered_map<teq::iTensor*,CandsT> opt::Matcher::candidates_

Map real TEQ tensors to candidates identified as TEQ graph is visited.

◆ group_head_

tag::SubgraphAssocsT opt::Matcher::group_head_

Root of grouped subgraphs.

◆ scalarize_

std::function<std::string(teq::iTensor*)> opt::Matcher::scalarize_

Function that returns constant representation of tensor.

◆ voters_

VoterPool opt::Matcher::voters_

Conversion voters to identify candidates.


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