33 : _kernel(nullptr), _border_handler(), _shift_handler(), _activationlayer_function(), _is_activationlayer_enabled(false)
42 auto k = std::make_unique<GCDepthwiseConvolutionLayer3x3Kernel>();
43 k->configure(input, weights, biases, output, conv_info, depth_multiplier);
44 _kernel = std::move(k);
52 _is_activationlayer_enabled = act_info.
enabled();
54 if(_is_activationlayer_enabled)
56 _activationlayer_function.
configure(output,
nullptr, act_info);
69 if(_is_activationlayer_enabled)
71 _activationlayer_function.
run();
Class describing the value of a pixel for any image format.
bool enabled() const
Check if initialised.
void dispatch(IGCKernel &kernel, bool flush=true)
Schedule the execution of the passed kernel if possible.
void run() override final
Run the kernels contained in the function.
void memory_barrier()
Defines a barrier ordering memory transactions.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Interface for GLES Compute tensor.
size_t x() const
Semantic accessor for width as x.
Activation Layer Information class.
Copyright (c) 2017-2021 Arm Limited.
static GCScheduler & get()
Access the scheduler singleton.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
void configure(const IGCTensor *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value=PixelValue())
Initialise the kernel's input, output and border mode.
Padding and stride information class.
void run() override final
Run the kernels contained in the function.
GCDepthwiseConvolutionLayer3x3()
Default constructor.
size_t y() const
Semantic accessor for height as y.
void configure(IGCTensor *input, IGCTensor *output, ActivationLayerInfo act_info)
Set the input and output tensor.
Class for specifying the size of an image or rectangle.
void configure(IGCTensor *input, const IGCTensor *weights, const IGCTensor *biases, IGCTensor *output, const PadStrideInfo &conv_info, unsigned int depth_multiplier=1, const ActivationLayerInfo &act_info=ActivationLayerInfo(), const Size2D &dilation=Size2D(1U, 1U))
Initialize the function's source, destination, conv and border_size.
Interface to enqueue GLES kernels and get/set the GLES CommandQueue.
void configure(IGCTensor *input)
Set the input of the kernel.