Compute Library
 22.05
Activation Class Reference

#include <Acl.hpp>

Collaboration diagram for Activation:
[legend]

Public Member Functions

 Activation (Context &ctx, const TensorDescriptor &src, const TensorDescriptor &dst, const ActivationDesc &desc, StatusCode *status=nullptr)
 
- Public Member Functions inherited from Operator
StatusCode run (Queue &queue, TensorPack &pack)
 Run an operator on a given input list. More...
 
- Public Member Functions inherited from ObjectBase< AclOperator_ >
 ~ObjectBase ()=default
 Destructor. More...
 
 ObjectBase (const ObjectBase< AclOperator_ > &)=default
 Copy constructor. More...
 
 ObjectBase (ObjectBase< AclOperator_ > &&)=default
 Move Constructor. More...
 
ObjectBase< AclOperator_ > & operator= (const ObjectBase< AclOperator_ > &)=default
 Copy assignment operator. More...
 
ObjectBase< AclOperator_ > & operator= (ObjectBase< AclOperator_ > &&)=default
 Move assignment operator. More...
 
void reset (AclOperator_ *val)
 Reset object value. More...
 
const AclOperator_get () const
 Access uderlying object. More...
 
AclOperator_get ()
 Access uderlying object. More...
 

Detailed Description

Definition at line 780 of file Acl.hpp.

Constructor & Destructor Documentation

◆ Activation()

Activation ( Context ctx,
const TensorDescriptor src,
const TensorDescriptor dst,
const ActivationDesc desc,
StatusCode status = nullptr 
)
inline

Definition at line 783 of file Acl.hpp.

References AclActivation(), ObjectBase< T >::get(), and TensorDescriptor::get().

784  {
785  AclOperator op;
786  const auto st = detail::as_enum<StatusCode>(AclActivation(&op, ctx.get(), src.get(), dst.get(), desc));
787  reset(op);
788  report_status(st, "[Compute Library] Failure during Activation operator creation");
789  if(status)
790  {
791  *status = st;
792  }
793  }
void reset(AclOperator_ *val)
Reset object value.
Definition: Acl.hpp:148
SimpleTensor< float > src
Definition: DFT.cpp:155
AclStatus AclActivation(AclOperator *op, AclContext ctx, const AclTensorDescriptor *src, const AclTensorDescriptor *dst, const AclActivationDescriptor info)
__cplusplus

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