13 #include <arm_compute/runtime/CL/functions/CLConvolutionLayer.h> 14 #include <arm_compute/runtime/MemoryManagerOnDemand.h> 22 const TensorInfo& output,
23 const Convolution2dDescriptor& descriptor,
24 const TensorInfo& weights,
25 const Optional<TensorInfo>& biases,
26 bool isFastMathEnabled =
false,
27 const ActivationDescriptor* activationDescriptor =
nullptr);
34 std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager,
35 const bool isFastMathEnabled =
false);
41 mutable arm_compute::CLConvolutionLayer m_ConvolutionLayer;
43 std::unique_ptr<arm_compute::CLTensor> m_KernelTensor;
44 std::unique_ptr<arm_compute::CLTensor> m_BiasTensor;
46 arm_compute::ConvolutionMethod m_ConvolutionMethod;
48 void FreeUnusedTensors();
ClConvolution2dWorkload(const Convolution2dQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager, const bool isFastMathEnabled=false)
Copyright (c) 2020 ARM Limited.
arm_compute::Status ClConvolution2dWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const Convolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, bool isFastMathEnabled, const ActivationDescriptor *activationDescriptor)
arm_compute::ConvolutionMethod GetConvolutionMethod() const
void Execute() const override
Contains information about inputs and outputs to a layer.