24.02.1
|
Go to the documentation of this file.
36 const ICLTensor *
src{
nullptr};
37 const ICLTensor *weights{
nullptr};
38 const ICLTensor *biases{
nullptr};
39 ICLTensor *
dst{
nullptr};
40 std::unique_ptr<opencl::ClDirectConv3d> op{
nullptr};
67 src->info(), weights->
info(), ((biases !=
nullptr) ? biases->
info() :
nullptr),
dst->info(), conv3d_info));
70 _impl->weights = weights;
71 _impl->biases = biases;
74 _impl->op = std::make_unique<opencl::ClDirectConv3d>();
75 _impl->op->configure(compile_context, _impl->src->info(), _impl->weights->info(),
76 _impl->biases ? _impl->biases->info() :
nullptr, _impl->dst->info(), conv3d_info);
SimpleTensor< float > src
Interface for OpenCL tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static Status validate(const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *src2, const ITensorInfo *dst, const Conv3dInfo &conv3d_info)
Static function to check if given info will lead to a valid configuration.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void run() override
Run the kernels contained in the function.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
static Status validate(const ITensorInfo *src, const ITensorInfo *weights, const ITensorInfo *biases, const ITensorInfo *dst, const Conv3dInfo &conv3d_info)
Static function to check if given info will lead to a valid configuration of CLConv3D.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
#define ARM_COMPUTE_ERROR_THROW_ON(status)
void configure(const CLCompileContext &compile_context, const ICLTensor *src, const ICLTensor *weights, const ICLTensor *biases, ICLTensor *dst, const Conv3dInfo &conv3d_info)
Set the src and dst tensors.
Copyright (c) 2017-2024 Arm Limited.
Descriptor used by the 3d Convolution function.
Store the tensor's metadata.