Compute Library
 22.11
ITensorDescPack< TDesc >::PackElement Struct Reference

#include <ITensorDescPack.h>

Public Member Functions

 PackElement ()=default
 
 ~PackElement ()=default
 
 PackElement (const PackElement &)=default
 
PackElementoperator= (const PackElement &)=default
 
 PackElement (PackElement &&)=default
 
PackElementoperator= (PackElement &&)=default
 
 PackElement (int id, TDesc *tensor)
 
 PackElement (int id, const TDesc *ctensor)
 

Data Fields

int id { -1 }
 
TDesc * tensor { nullptr }
 
const TDesc * ctensor { nullptr }
 

Friends

bool operator== (const PackElement &elem0, const PackElement &elem1)
 

Detailed Description

template<typename TDesc>
struct arm_compute::experimental::dynamic_fusion::ITensorDescPack< TDesc >::PackElement

Definition at line 42 of file ITensorDescPack.h.

Constructor & Destructor Documentation

◆ PackElement() [1/5]

◆ ~PackElement()

~PackElement ( )
default

◆ PackElement() [2/5]

PackElement ( const PackElement )
default

◆ PackElement() [3/5]

PackElement ( PackElement &&  )
default

◆ PackElement() [4/5]

◆ PackElement() [5/5]

Member Function Documentation

◆ operator=() [1/2]

PackElement& operator= ( const PackElement )
default

◆ operator=() [2/2]

PackElement& operator= ( PackElement &&  )
default

Friends And Related Function Documentation

◆ operator==

bool operator== ( const PackElement elem0,
const PackElement elem1 
)
friend

Definition at line 63 of file ITensorDescPack.h.

64  {
65  const bool same_ctensor = (elem0.tensor == nullptr && elem1.tensor == nullptr && elem0.ctensor != nullptr && elem1.ctensor != nullptr && *elem0.ctensor == *elem1.ctensor);
66  const bool same_tensor = (elem0.ctensor == nullptr && elem1.ctensor == nullptr && elem0.tensor != nullptr && elem1.tensor != nullptr && *elem0.tensor == *elem1.tensor);
67 
68  return elem0.id == elem1.id && (same_ctensor || same_tensor);
69  }

Field Documentation

◆ ctensor

const TDesc* ctensor { nullptr }

Definition at line 61 of file ITensorDescPack.h.

◆ id

◆ tensor


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