Compute Library
 22.11
DependencyGraph::OpPack Struct Reference

A pack of operator including its input and output tensors, used by traversing through the graph in topological order. More...

#include <DependencyGraph.h>

Data Fields

Id op {}
 
std::vector< Idinputs {}
 
std::vector< Idoutputs {}
 
OperatorId op {}
 
std::vector< TensorIdinputs {}
 
std::vector< TensorIdoutputs {}
 

Friends

bool operator== (const OpPack &opp0, const OpPack &opp1)
 
bool operator== (const OpPack &opp0, const OpPack &opp1)
 

Detailed Description

A pack of operator including its input and output tensors, used by traversing through the graph in topological order.

Definition at line 82 of file DependencyGraph.h.

Friends And Related Function Documentation

◆ operator== [1/2]

bool operator== ( const OpPack opp0,
const OpPack opp1 
)
friend

Definition at line 73 of file DependencyGraph.h.

74  {
75  return std::make_tuple(
76  opp0.op, opp0.inputs, opp0.outputs)
77  == std::make_tuple(
78  opp1.op, opp1.inputs, opp1.outputs);
79  }

◆ operator== [2/2]

bool operator== ( const OpPack opp0,
const OpPack opp1 
)
friend

Definition at line 87 of file DependencyGraph.h.

88  {
89  return std::make_tuple(
90  opp0.op, opp0.inputs, opp0.outputs)
91  == std::make_tuple(
92  opp1.op, opp1.inputs, opp1.outputs);
93  }

Field Documentation

◆ inputs [1/2]

std::vector<TensorId> inputs {}

Definition at line 71 of file DependencyGraph.h.

◆ inputs [2/2]

std::vector<Id> inputs {}

Definition at line 85 of file DependencyGraph.h.

◆ op [1/2]

OperatorId op {}

Definition at line 70 of file DependencyGraph.h.

◆ op [2/2]

◆ outputs [1/2]

std::vector<TensorId> outputs {}

Definition at line 72 of file DependencyGraph.h.

◆ outputs [2/2]

std::vector<Id> outputs {}

Definition at line 86 of file DependencyGraph.h.


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