Compute Library
 22.05
PostOpAct< TensorRelatedT > Struct Template Reference

(EXPERIMENTAL_POST_OPS) Implementation of specific IPostOps More...

#include <PostOps.h>

Collaboration diagram for PostOpAct< TensorRelatedT >:
[legend]

Public Member Functions

 PostOpAct (const ActivationLayerInfo &act_info)
 
 ~PostOpAct () override=default
 
 PostOpAct (const PostOpAct &)=default
 
PostOpActoperator= (const PostOpAct &)=default
 
 PostOpAct (PostOpAct &&)=default
 
PostOpActoperator= (PostOpAct &&)=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

ActivationLayerInfo _act_info
 

Detailed Description

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

(EXPERIMENTAL_POST_OPS) Implementation of specific IPostOps

Definition at line 42 of file PostOps.h.

Constructor & Destructor Documentation

◆ PostOpAct() [1/3]

PostOpAct ( const ActivationLayerInfo act_info)
inline

Definition at line 45 of file PostOps.h.

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

46  : _act_info{ act_info }
47  {
48  }
ActivationLayerInfo _act_info
Definition: PostOps.h:76

◆ ~PostOpAct()

~PostOpAct ( )
overridedefault

◆ PostOpAct() [2/3]

PostOpAct ( const PostOpAct< TensorRelatedT > &  )
default

◆ PostOpAct() [3/3]

PostOpAct ( PostOpAct< 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 64 of file PostOps.h.

65  {
66  return {};
67  }

◆ arguments() [2/2]

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

Implements IPostOp< TensorRelatedT >.

Definition at line 68 of file PostOps.h.

69  {
70  return {};
71  }

◆ 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 72 of file PostOps.h.

73  {
74  return std::make_unique<PostOpAct<TensorRelatedT>>(*this);
75  }

◆ operator=() [1/2]

◆ operator=() [2/2]

PostOpAct& operator= ( PostOpAct< 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 56 of file PostOps.h.

Referenced by PostOpEltwiseAdd< TensorRelatedT >::PostOpEltwiseAdd(), and PostOpEltwisePRelu< TensorRelatedT >::PostOpEltwisePRelu().

57  {
58  return 0;
59  }

◆ type()

PostOpType type ( ) const
inlineoverridevirtual

Field Documentation

◆ _act_info

Definition at line 76 of file PostOps.h.


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