Compute Library
 22.08
OperatorGraph::Implementation Struct Reference

#include <OperatorGraphImpl.h>

Collaboration diagram for OperatorGraph::Implementation:
[legend]

Public Types

using Dependency = DependencyGraph
 
using OperatorMap = std::map< Operator::Id, utils::memory::deep_unique_ptr< OperatorContent > >
 
using OpTensorMap = std::map< OpTensor::Id, utils::memory::deep_unique_ptr< OpTensorContent > >
 

Public Member Functions

template<typename ContentT , typename... Args>
void add_node (Operator::Id id, Args &&... args)
 
template<typename... Args>
void add_tensor (OpTensor::Id id, Args &&... args)
 
 Implementation ()=default
 
 ~Implementation ()=default
 

Data Fields

Dependency graph {}
 
OperatorMap operators {}
 
OpTensorMap tensors {}
 
Status status {}
 

Friends

bool operator== (const OperatorGraph::Implementation &graph0, const OperatorGraph::Implementation &graph1)
 

Detailed Description

Definition at line 208 of file OperatorGraphImpl.h.

Member Typedef Documentation

◆ Dependency

Definition at line 223 of file OperatorGraphImpl.h.

◆ OperatorMap

◆ OpTensorMap

Constructor & Destructor Documentation

◆ Implementation()

Implementation ( )
default

◆ ~Implementation()

~Implementation ( )
default

Member Function Documentation

◆ add_node()

void add_node ( Operator::Id  id,
Args &&...  args 
)
inline

◆ add_tensor()

void add_tensor ( OpTensor::Id  id,
Args &&...  args 
)
inline

Definition at line 218 of file OperatorGraphImpl.h.

References GemmTuner::args.

Referenced by arm_compute::experimental::dynamic_fusion::add_tensor().

219  {
220  tensors[id] = utils::memory::make_deep_unique<OpTensorContent, OpTensorContent>(id, std::forward<Args>(args)...);
221  }

Friends And Related Function Documentation

◆ operator==

bool operator== ( const OperatorGraph::Implementation graph0,
const OperatorGraph::Implementation graph1 
)
friend

Definition at line 230 of file OperatorGraphImpl.h.

231  {
232  return graph0.graph == graph1.graph && graph0.operators == graph1.operators && graph0.tensors == graph1.tensors;
233  }

Field Documentation

◆ graph

◆ operators

◆ status

◆ tensors


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