Compute Library
 22.08
OpTensorContent Struct Reference

#include <OperatorGraphImpl.h>

Collaboration diagram for OpTensorContent:
[legend]

Public Types

using Id = DependencyGraph::Id
 

Public Member Functions

 OpTensorContent ()=default
 
 OpTensorContent (Id id)
 
 OpTensorContent (Id id, ITensorInfo *desc)
 
 ~OpTensorContent ()=default
 
 OpTensorContent (const OpTensorContent &)=default
 
OpTensorContentoperator= (const OpTensorContent &)=default
 
 OpTensorContent (OpTensorContent &&)=default
 
OpTensorContentoperator= (OpTensorContent &&)=default
 
bool operator== (const OpTensorContent &other) const
 
const ITensorInfoget_tensor_info () const
 
ITensorInfoget_tensor_info ()
 

Data Fields

Id id {}
 
ITensorInfodesc {}
 

Detailed Description

Definition at line 51 of file OperatorGraphImpl.h.

Member Typedef Documentation

◆ Id

Definition at line 54 of file OperatorGraphImpl.h.

Constructor & Destructor Documentation

◆ OpTensorContent() [1/5]

OpTensorContent ( )
default

◆ OpTensorContent() [2/5]

OpTensorContent ( Id  id)
inline

Definition at line 56 of file OperatorGraphImpl.h.

57  : id{ id }, desc{}
58  {
59  }

◆ OpTensorContent() [3/5]

OpTensorContent ( Id  id,
ITensorInfo desc 
)
inline

Definition at line 60 of file OperatorGraphImpl.h.

61  : id{ id }, desc{ desc }
62  {
63  }

◆ ~OpTensorContent()

~OpTensorContent ( )
default

◆ OpTensorContent() [4/5]

OpTensorContent ( const OpTensorContent )
default

◆ OpTensorContent() [5/5]

OpTensorContent ( OpTensorContent &&  )
default

Member Function Documentation

◆ get_tensor_info() [1/2]

◆ get_tensor_info() [2/2]

ITensorInfo* get_tensor_info ( )
inline

Definition at line 78 of file OperatorGraphImpl.h.

◆ operator=() [1/2]

OpTensorContent& operator= ( const OpTensorContent )
default

◆ operator=() [2/2]

OpTensorContent& operator= ( OpTensorContent &&  )
default

◆ operator==()

bool operator== ( const OpTensorContent other) const
inline

Definition at line 69 of file OperatorGraphImpl.h.

References OpTensorContent::desc.

70  {
71  return desc == other.desc;
72  }

Field Documentation

◆ desc

ITensorInfo* desc {}

Definition at line 84 of file OperatorGraphImpl.h.

Referenced by OpTensorContent::operator==().

◆ id

Id id {}

Definition at line 83 of file OperatorGraphImpl.h.


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