Cortenn
Classes | Typedefs
opt Namespace Reference

Classes

struct  LeafFinder
 
struct  TargetPruner
 

Typedefs

template<typename T >
using GetLeafValT = std::function< T(ade::iLeaf *)>
 Functor for getting leaf values. More...
 
using ParentMapT = std::unordered_map< ade::iTensor *, std::unordered_set< size_t > >
 Type for mapping function nodes in path to boolean vector. More...
 
using PruneFuncT = std::function< ade::TensptrT(ade::iFunctor *, std::unordered_set< size_t >, ade::ArgsT)>
 Pruning functor type. More...
 

Detailed Description

shear.hpp opt

Purpose: Define ade graph pruning functions

Typedef Documentation

◆ GetLeafValT

template<typename T >
using opt::GetLeafValT = typedef std::function<T(ade::iLeaf*)>

Functor for getting leaf values.

◆ ParentMapT

using opt::ParentMapT = typedef std::unordered_map< ade::iTensor*,std::unordered_set<size_t> >

Type for mapping function nodes in path to boolean vector.

◆ PruneFuncT

using opt::PruneFuncT = typedef std::function<ade::TensptrT(ade::iFunctor*, std::unordered_set<size_t>,ade::ArgsT)>

Pruning functor type.