Compute Library
 21.02
GCPixelWiseMultiplication Class Reference

Basic function to run GCPixelWiseMultiplicationKernel. More...

#include <GCPixelWiseMultiplication.h>

Collaboration diagram for GCPixelWiseMultiplication:
[legend]

Public Member Functions

void configure (const IGCTensor *input1, const IGCTensor *input2, IGCTensor *output, float scale, const ActivationLayerInfo &act_info=ActivationLayerInfo())
 Initialise the kernel's inputs, output and convertion policy. More...
 
- Public Member Functions inherited from IGCSimpleFunction
 IGCSimpleFunction (GCRuntimeContext *ctx=nullptr)
 Default Constructor. More...
 
 IGCSimpleFunction (const IGCSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 IGCSimpleFunction (IGCSimpleFunction &&)=default
 Default move constructor. More...
 
IGCSimpleFunctionoperator= (const IGCSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
IGCSimpleFunctionoperator= (IGCSimpleFunction &&)=default
 Default move assignment operator. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Detailed Description

Basic function to run GCPixelWiseMultiplicationKernel.

Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 39 of file GCPixelWiseMultiplication.h.

Member Function Documentation

◆ configure()

void configure ( const IGCTensor input1,
const IGCTensor input2,
IGCTensor output,
float  scale,
const ActivationLayerInfo act_info = ActivationLayerInfo() 
)

Initialise the kernel's inputs, output and convertion policy.

Parameters
[in]input1First tensor input. Data types supported: F32.
[in]input2Second tensor input. Data types supported: Same as input1.
[out]outputOutput tensor. Data types supported: Same as input1.
[in]scaleScale to apply after multiplication. Must be a positive value.
[in]act_info(Optional) Activation layer information in case of a fused activation. Currently not supported.

Definition at line 32 of file GCPixelWiseMultiplication.cpp.

References ARM_COMPUTE_UNUSED.

33 {
34  ARM_COMPUTE_UNUSED(act_info);
35  auto k = std::make_unique<GCPixelWiseMultiplicationKernel>();
36  k->configure(input1, input2, output, scale);
37  _kernel = std::move(k);
38 }
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Definition: Error.h:152

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