Compute Library
 22.05
PostOpEltwiseAdd< TensorRelatedT > Struct Template Reference

#include <PostOps.h>

Collaboration diagram for PostOpEltwiseAdd< TensorRelatedT >:
[legend]

Public Member Functions

 PostOpEltwiseAdd (TensorRelatedT addend, int prev_dst_pos, ConvertPolicy policy)
 
 ~PostOpEltwiseAdd () override=default
 
 PostOpEltwiseAdd (const PostOpEltwiseAdd &)=default
 
PostOpEltwiseAddoperator= (const PostOpEltwiseAdd &)=default
 
 PostOpEltwiseAdd (PostOpEltwiseAdd &&)=default
 
PostOpEltwiseAddoperator= (PostOpEltwiseAdd &&)=default
 
int prev_dst_pos () const override
 The position of previous op's dst in current op's argument list. More...
 
PostOpType type () const override
 The IPostOp type. More...
 
std::vector< TensorRelatedT * > arguments () override
 The argument tensors The order of the argument tensor is strictly preserved. More...
 
std::vector< const TensorRelatedT * > arguments () const override
 
std::unique_ptr< IPostOp< TensorRelatedT > > clone () const override
 Clone method used in cases where PostOps are owned by unique_ptr. More...
 
- Public Member Functions inherited from IPostOp< TensorRelatedT >
size_t arity () const
 Get the arity of the post op. More...
 
virtual ~IPostOp ()
 

Data Fields

TensorRelatedT _addend
 
int _prev_dst_pos
 
ConvertPolicy _policy
 

Detailed Description

template<typename TensorRelatedT>
struct arm_compute::experimental::PostOpEltwiseAdd< TensorRelatedT >

Definition at line 80 of file PostOps.h.

Constructor & Destructor Documentation

◆ PostOpEltwiseAdd() [1/3]

PostOpEltwiseAdd ( TensorRelatedT  addend,
int  prev_dst_pos,
ConvertPolicy  policy 
)
inline

Definition at line 83 of file PostOps.h.

References PostOpAct< TensorRelatedT >::operator=(), and PostOpAct< TensorRelatedT >::prev_dst_pos().

84  : _addend{ addend },
86  _policy{ policy }
87  {
88  }
int prev_dst_pos() const override
The position of previous op&#39;s dst in current op&#39;s argument list.
Definition: PostOps.h:95
TensorRelatedT _addend
Definition: PostOps.h:115
ConvertPolicy _policy
Definition: PostOps.h:117
int _prev_dst_pos
Definition: PostOps.h:116

◆ ~PostOpEltwiseAdd()

~PostOpEltwiseAdd ( )
overridedefault

◆ PostOpEltwiseAdd() [2/3]

PostOpEltwiseAdd ( const PostOpEltwiseAdd< TensorRelatedT > &  )
default

◆ PostOpEltwiseAdd() [3/3]

PostOpEltwiseAdd ( PostOpEltwiseAdd< TensorRelatedT > &&  )
default

Member Function Documentation

◆ arguments() [1/2]

std::vector<TensorRelatedT *> arguments ( )
inlineoverridevirtual

The argument tensors The order of the argument tensor is strictly preserved.

Implements IPostOp< TensorRelatedT >.

Definition at line 103 of file PostOps.h.

104  {
105  return { &_addend };
106  }
TensorRelatedT _addend
Definition: PostOps.h:115

◆ arguments() [2/2]

std::vector<const TensorRelatedT *> arguments ( ) const
inlineoverridevirtual

Implements IPostOp< TensorRelatedT >.

Definition at line 107 of file PostOps.h.

108  {
109  return { &_addend };
110  }
TensorRelatedT _addend
Definition: PostOps.h:115

◆ clone()

std::unique_ptr<IPostOp<TensorRelatedT> > clone ( ) const
inlineoverridevirtual

Clone method used in cases where PostOps are owned by unique_ptr.

Note
: This performs a shallow copy of the TensorRelatedT if TensorRelatedT points to a resource

Implements IPostOp< TensorRelatedT >.

Definition at line 111 of file PostOps.h.

112  {
113  return std::make_unique<PostOpEltwiseAdd<TensorRelatedT>>(*this);
114  }

◆ operator=() [1/2]

PostOpEltwiseAdd& operator= ( const PostOpEltwiseAdd< TensorRelatedT > &  )
default

◆ operator=() [2/2]

PostOpEltwiseAdd& operator= ( PostOpEltwiseAdd< TensorRelatedT > &&  )
default

◆ prev_dst_pos()

int prev_dst_pos ( ) const
inlineoverridevirtual

The position of previous op's dst in current op's argument list.

Implements IPostOp< TensorRelatedT >.

Definition at line 95 of file PostOps.h.

96  {
97  return _prev_dst_pos;
98  }
int _prev_dst_pos
Definition: PostOps.h:116

◆ type()

PostOpType type ( ) const
inlineoverridevirtual

Field Documentation

◆ _addend

TensorRelatedT _addend

Definition at line 115 of file PostOps.h.

◆ _policy

ConvertPolicy _policy

Definition at line 117 of file PostOps.h.

◆ _prev_dst_pos

int _prev_dst_pos

Definition at line 116 of file PostOps.h.


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