Compute Library
 22.05
PostOpEltwisePRelu< TensorRelatedT > Struct Template Reference

#include <PostOps.h>

Collaboration diagram for PostOpEltwisePRelu< TensorRelatedT >:
[legend]

Public Member Functions

 PostOpEltwisePRelu (TensorRelatedT alpha_param, int prev_dst_pos, ConvertPolicy policy)
 
 ~PostOpEltwisePRelu () override=default
 
 PostOpEltwisePRelu (const PostOpEltwisePRelu &)=default
 
PostOpEltwisePReluoperator= (const PostOpEltwisePRelu &)=default
 
 PostOpEltwisePRelu (PostOpEltwisePRelu &&)=default
 
PostOpEltwisePReluoperator= (PostOpEltwisePRelu &&)=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 _alpha_param
 
int _prev_dst_pos
 
ConvertPolicy _policy
 

Detailed Description

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

Definition at line 121 of file PostOps.h.

Constructor & Destructor Documentation

◆ PostOpEltwisePRelu() [1/3]

PostOpEltwisePRelu ( TensorRelatedT  alpha_param,
int  prev_dst_pos,
ConvertPolicy  policy 
)
inline

Definition at line 124 of file PostOps.h.

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

125  : _alpha_param{ alpha_param },
127  _policy{ policy }
128  {
129  }
int _prev_dst_pos
Definition: PostOps.h:157
int prev_dst_pos() const override
The position of previous op&#39;s dst in current op&#39;s argument list.
Definition: PostOps.h:136
ConvertPolicy _policy
Definition: PostOps.h:158
TensorRelatedT _alpha_param
Definition: PostOps.h:156

◆ ~PostOpEltwisePRelu()

~PostOpEltwisePRelu ( )
overridedefault

◆ PostOpEltwisePRelu() [2/3]

PostOpEltwisePRelu ( const PostOpEltwisePRelu< TensorRelatedT > &  )
default

◆ PostOpEltwisePRelu() [3/3]

PostOpEltwisePRelu ( PostOpEltwisePRelu< 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 144 of file PostOps.h.

145  {
146  return { &_alpha_param };
147  }
TensorRelatedT _alpha_param
Definition: PostOps.h:156

◆ arguments() [2/2]

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

Implements IPostOp< TensorRelatedT >.

Definition at line 148 of file PostOps.h.

149  {
150  return { &_alpha_param };
151  }
TensorRelatedT _alpha_param
Definition: PostOps.h:156

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

153  {
154  return std::make_unique<PostOpEltwisePRelu<TensorRelatedT>>(*this);
155  }

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

137  {
138  return _prev_dst_pos;
139  }
int _prev_dst_pos
Definition: PostOps.h:157

◆ type()

PostOpType type ( ) const
inlineoverridevirtual

Field Documentation

◆ _alpha_param

TensorRelatedT _alpha_param

Definition at line 156 of file PostOps.h.

◆ _policy

ConvertPolicy _policy

Definition at line 158 of file PostOps.h.

◆ _prev_dst_pos

int _prev_dst_pos

Definition at line 157 of file PostOps.h.


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