Compute Library
 22.11
ClGemmLowpMatrixMultiplyReshapedKernel Class Reference

OpenCL kernel to multiply matrices when both the input matrices LHS (src0) and RHS (src1) have been reshaped. More...

#include <ClGemmLowpMatrixMultiplyReshapedKernel.h>

Collaboration diagram for ClGemmLowpMatrixMultiplyReshapedKernel:
[legend]

Public Member Functions

 ClGemmLowpMatrixMultiplyReshapedKernel ()
 
 ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE (ClGemmLowpMatrixMultiplyReshapedKernel)
 
void configure (const CLCompileContext &compile_context, const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst, const GEMMLHSMatrixInfo &lhs_info, const GEMMRHSMatrixInfo &rhs_info, const GEMMReshapeInfo &gemm_info)
 Initialise the kernel's input and dst. More...
 
void run_op (ITensorPack &tensors, const Window &window, cl::CommandQueue &queue) override
 Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue. More...
 
- Public Member Functions inherited from ICLKernel
 ICLKernel ()
 Constructor. More...
 
cl::Kernel & kernel ()
 Returns a reference to the OpenCL kernel of this object. More...
 
CLKernelType type () const
 Returns the CL kernel type. More...
 
template<typename T >
void add_1D_array_argument (unsigned int &idx, const ICLArray< T > *array, const Strides &strides, unsigned int num_dimensions, const Window &window)
 Add the passed 1D array's parameters to the object's kernel's arguments starting from the index idx. More...
 
void add_1D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window)
 Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
 
void add_1D_tensor_argument_if (bool cond, unsigned int &idx, const ICLTensor *tensor, const Window &window)
 Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx if the condition is true. More...
 
void add_2D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window)
 Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
 
void add_2D_tensor_argument_if (bool cond, unsigned int &idx, const ICLTensor *tensor, const Window &window)
 Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx if the condition is true. More...
 
void add_3D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window)
 Add the passed 3D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
 
void add_4D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window)
 Add the passed 4D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
 
void add_5D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window)
 Add the passed 5D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
 
void add_3d_tensor_nhw_argument (unsigned int &idx, const ICLTensor *tensor)
 Add the passed NHW 3D tensor's parameters to the object's kernel's arguments by passing strides, dimensions and the offset to the first valid element in bytes. More...
 
void add_4d_tensor_nhwc_argument (unsigned int &idx, const ICLTensor *tensor)
 Add the passed NHWC 4D tensor's parameters to the object's kernel's arguments by passing strides, dimensions and the offset to the first valid element in bytes. More...
 
virtual void run (const Window &window, cl::CommandQueue &queue)
 Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue. More...
 
virtual void run_composite_op (ITensorPack &tensors, const Window &window, cl::CommandQueue &queue, const experimental::dynamic_fusion::ClExecutionDescriptor &exec_desc)
 The execution is carried out through run_op method. But the run_op method needs to be extended to include ClExecutionDescriptor as now LWS GWS tuning will be separated from the IKernel. More...
 
template<typename T >
void add_argument (unsigned int &idx, T value)
 Add the passed parameters to the object's kernel's arguments starting from the index idx. More...
 
void set_lws_hint (const cl::NDRange &lws_hint)
 Set the Local-Workgroup-Size hint. More...
 
cl::NDRange lws_hint () const
 Return the Local-Workgroup-Size hint. More...
 
void set_wbsm_hint (const cl_int &wbsm_hint)
 Set the workgroup batch size modifier hint. More...
 
cl_int wbsm_hint () const
 Return the workgroup batch size modifier hint. More...
 
const std::string & config_id () const
 Get the configuration ID. More...
 
void set_target (GPUTarget target)
 Set the targeted GPU architecture. More...
 
void set_target (cl::Device &device)
 Set the targeted GPU architecture according to the CL device. More...
 
GPUTarget get_target () const
 Get the targeted GPU architecture. More...
 
size_t get_max_workgroup_size ()
 Get the maximum workgroup size for the device the CLKernelLibrary uses. More...
 
template<unsigned int dimension_size>
void add_tensor_argument (unsigned &idx, const ICLTensor *tensor, const Window &window)
 
template<typename T , unsigned int dimension_size>
void add_array_argument (unsigned &idx, const ICLArray< T > *array, const Strides &strides, unsigned int num_dimensions, const Window &window)
 Add the passed array's parameters to the object's kernel's arguments starting from the index idx. More...
 
- Public Member Functions inherited from IKernel
 IKernel ()
 Constructor. More...
 
virtual ~IKernel ()=default
 Destructor. More...
 
virtual bool is_parallelisable () const
 Indicates whether or not the kernel is parallelisable. More...
 
virtual BorderSize border_size () const
 The size of the border for that kernel. More...
 
const Windowwindow () const
 The maximum window the kernel can be executed on. More...
 
bool is_window_configured () const
 Function to check if the embedded window of this kernel has been configured. More...
 

Static Public Member Functions

static Status validate (const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst, const GEMMLHSMatrixInfo &lhs_info, const GEMMRHSMatrixInfo &rhs_info, const GEMMReshapeInfo &gemm_info)
 Static function to check if given info will lead to a valid configuration. More...
 
- Static Public Member Functions inherited from ICLKernel
static constexpr unsigned int num_arguments_per_3d_tensor_nhw ()
 Returns the number of arguments enqueued per NHW 3D Tensor object. More...
 
static constexpr unsigned int num_arguments_per_4d_tensor_nhwc ()
 Returns the number of arguments enqueued per NHWC 4D Tensor object. More...
 
static constexpr unsigned int num_arguments_per_1D_array ()
 Returns the number of arguments enqueued per 1D array object. More...
 
static constexpr unsigned int num_arguments_per_1D_tensor ()
 Returns the number of arguments enqueued per 1D tensor object. More...
 
static constexpr unsigned int num_arguments_per_2D_tensor ()
 Returns the number of arguments enqueued per 2D tensor object. More...
 
static constexpr unsigned int num_arguments_per_3D_tensor ()
 Returns the number of arguments enqueued per 3D tensor object. More...
 
static constexpr unsigned int num_arguments_per_4D_tensor ()
 Returns the number of arguments enqueued per 4D tensor object. More...
 
static cl::NDRange gws_from_window (const Window &window)
 Get the global work size given an execution window. More...
 

Detailed Description

OpenCL kernel to multiply matrices when both the input matrices LHS (src0) and RHS (src1) have been reshaped.

Note
The input matrices src0 and src1 must be reshaped through:

Definition at line 44 of file ClGemmLowpMatrixMultiplyReshapedKernel.h.

Constructor & Destructor Documentation

◆ ClGemmLowpMatrixMultiplyReshapedKernel()

Member Function Documentation

◆ ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE()

ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE ( ClGemmLowpMatrixMultiplyReshapedKernel  )

◆ configure()

void configure ( const CLCompileContext compile_context,
const ITensorInfo src0,
const ITensorInfo src1,
ITensorInfo dst,
const GEMMLHSMatrixInfo lhs_info,
const GEMMRHSMatrixInfo rhs_info,
const GEMMReshapeInfo gemm_info 
)

Initialise the kernel's input and dst.

Parameters
[in]compile_contextThe compile context to be used.
[in]src0Source tensor containing the LHS reshaped matrix. Data type supported: QASYMM8/QASYMM8_SIGNED. The number of dimensions for the LHS matrix must be less or equal than 4.
[in]src1Source tensor containing the RHS reshaped matrix. Data type supported: same as src0. The number of dimensions for the RHS matrix must be less or equal than 3.
[out]dstDestination tensor to store the result of matrix multiplication. Data type supported: S32
[in]lhs_infoLHS matrix information used for reshaping the src0 tensor. Only the following values are supported: lhs_info.m0: 2,3,4,5,6,7,8 lhs_info.k0: 2,3,4,8,16 lhs_info.transpose: false
[in]rhs_infoRHS matrix information used for reshaping the src1 tensor. Only the following values are supported: rhs_info.n0: 2,3,4,8,16 rhs_info.k0: same as lhs_info.k0 rhs_info.transpose: true
[in]gemm_infoGEMM information used to retrieve the original dimensions of the input matrices
Note
lhs_info.k0 must be equal to rhs_info.k0

Definition at line 143 of file ClGemmLowpMatrixMultiplyReshapedKernel.cpp.

References CLBuildOptions::add_option(), CLBuildOptions::add_option_if(), ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_THROW_ON, arm_compute::create_kernel(), ITensorInfo::data_type(), GEMMReshapeInfo::depth_output_gemm3d(), ITensorInfo::dimension(), arm_compute::dot8_supported(), CLKernelLibrary::get(), arm_compute::get_cl_dot8_acc_type_from_data_type(), arm_compute::get_cl_type_from_data_type(), arm_compute::get_padding_info(), GEMMRHSMatrixInfo::h0, arm_compute::has_padding_changed(), GEMMLHSMatrixInfo::interleave, GEMMRHSMatrixInfo::interleave, GEMMReshapeInfo::k(), GEMMLHSMatrixInfo::k0, kernel_name, GEMMReshapeInfo::m(), GEMMLHSMatrixInfo::m0, GEMMReshapeInfo::n(), GEMMRHSMatrixInfo::n0, ITensorInfo::num_dimensions(), CLBuildOptions::options(), arm_compute::preferred_dummy_work_items_support(), arm_compute::support::cpp11::to_string(), GEMMLHSMatrixInfo::transpose, GEMMRHSMatrixInfo::transpose, arm_compute::upper_string(), GEMMLHSMatrixInfo::v0, arm_compute::cpu::kernels::validate_and_configure_window(), and arm_compute::cpu::kernels::validate_arguments().

145 {
146  ARM_COMPUTE_ERROR_ON_NULLPTR(src0, src1, dst);
148 
149  _reinterpret_output_as_3d = (gemm_info.depth_output_gemm3d() != 0);
150  _k = gemm_info.k();
151  _use_dummy_work_items = preferred_dummy_work_items_support(CLKernelLibrary::get().get_device());
152 
153  // Check if we need to slide the matrix B
154  const unsigned int num_dimensionssrc0 = src0->num_dimensions();
155  _slide_matrix_b = (src1->num_dimensions() >= num_dimensionssrc0);
156 
157  auto padding_info = get_padding_info({ src0, src1, dst });
158  ElementsProcessed num_elements_processed{};
159 
160  // Configure kernel window
161  auto win_config = validate_and_configure_window(src0, src1, dst, lhs_info, rhs_info, gemm_info, num_elements_processed);
162  ARM_COMPUTE_ERROR_THROW_ON(win_config.first);
163  ICLKernel::configure_internal(win_config.second);
164 
165  // Calculate partial (store instead of load) M0 and partial N0 for the partial blocks at the end of a row/column if any. This is to avoid padding.
166  const unsigned int internal_m = _reinterpret_output_as_3d ? gemm_info.m() : dst->dimension(1);
167 
168  const unsigned int partial_store_m0 = internal_m % lhs_info.m0;
169  const unsigned int partial_store_n0 = gemm_info.n() % rhs_info.n0;
170 
171  // Create build options
172  CLBuildOptions build_opts;
173  build_opts.add_option_if(_reinterpret_output_as_3d, "-DREINTERPRET_OUTPUT_AS_3D");
174  build_opts.add_option_if(_reinterpret_output_as_3d, "-DHEIGHT_GEMM3D=" + support::cpp11::to_string(dst->dimension(1)));
175  build_opts.add_option_if(_reinterpret_output_as_3d, "-DDEPTH_GEMM3D=" + support::cpp11::to_string(dst->dimension(2)));
176  build_opts.add_option_if(!_slide_matrix_b, "-DMATRIX_B_DEPTH=" + support::cpp11::to_string(src1->dimension(2)));
177  build_opts.add_option_if(lhs_info.interleave, "-DLHS_INTERLEAVE");
178  build_opts.add_option_if(rhs_info.interleave, "-DRHS_INTERLEAVE");
179  build_opts.add_option_if(_use_dummy_work_items, "-DDUMMY_WORK_ITEMS");
180  build_opts.add_option("-DM=" + support::cpp11::to_string(gemm_info.m()));
181  build_opts.add_option("-DN=" + support::cpp11::to_string(gemm_info.n()));
182  build_opts.add_option("-DM0=" + support::cpp11::to_string(lhs_info.m0));
183  build_opts.add_option("-DN0=" + support::cpp11::to_string(rhs_info.n0));
184  build_opts.add_option("-DK0=" + support::cpp11::to_string(lhs_info.k0));
185  build_opts.add_option("-DV0=" + support::cpp11::to_string(lhs_info.v0));
186  build_opts.add_option("-DH0=" + support::cpp11::to_string(rhs_info.h0));
187  build_opts.add_option("-DDATA_TYPE=" + get_cl_type_from_data_type(src0->data_type()));
188  build_opts.add_option("-DACC_DATA_TYPE=" + get_cl_dot8_acc_type_from_data_type(src0->data_type()));
189  build_opts.add_option("-DPARTIAL_STORE_M0=" + support::cpp11::to_string(partial_store_m0));
190  build_opts.add_option("-DPARTIAL_STORE_N0=" + support::cpp11::to_string(partial_store_n0));
191 
192  std::string kernel_name("gemmlowp_mm_reshaped_");
193  kernel_name += lhs_info.transpose ? "lhs_t_" : "lhs_nt_";
194  kernel_name += rhs_info.transpose ? "rhs_t" : "rhs_nt";
195 
196  // A macro guard to compile ONLY the kernel of interest
197  build_opts.add_option("-D" + upper_string(kernel_name));
198 
199  // Create kernel
200  _kernel = create_kernel(compile_context, kernel_name, build_opts.options());
201 
202  // Set config_id for enabling LWS tuning
203  _config_id = kernel_name;
204  _config_id += "_";
205  _config_id += dot8_supported(CLKernelLibrary::get().get_device()) ? "_dot8" : "";
206  _config_id += "_";
207  _config_id += (_reinterpret_output_as_3d ? "3do_" : "");
208  _config_id += support::cpp11::to_string(dst->dimension(1));
209  _config_id += "_";
210  _config_id += support::cpp11::to_string(dst->dimension(0));
211  _config_id += "_";
212  _config_id += support::cpp11::to_string(gemm_info.k());
213  _config_id += "_";
214  _config_id += support::cpp11::to_string(dst->dimension(2));
215  _config_id += "_";
216  _config_id += support::cpp11::to_string(lhs_info.m0);
217  _config_id += "_";
218  _config_id += support::cpp11::to_string(rhs_info.n0);
219  _config_id += "_";
220  _config_id += support::cpp11::to_string(lhs_info.k0);
221  _config_id += "_";
222  _config_id += support::cpp11::to_string(lhs_info.v0);
223  _config_id += "_";
224  _config_id += support::cpp11::to_string(rhs_info.h0);
225  _config_id += "_";
226  _config_id += support::cpp11::to_string(lhs_info.interleave);
227  _config_id += "_";
228  _config_id += support::cpp11::to_string(rhs_info.interleave);
229 
231 }
bool dot8_supported(const cl::Device &device)
Helper function to check whether the cl_arm_integer_dot_product_int8 extension is supported...
Definition: CLHelpers.cpp:241
bool preferred_dummy_work_items_support(const cl::Device &device)
Helper function to check if "dummy work-items" are preferred to have a power of two NDRange In case d...
Definition: CLHelpers.cpp:367
std::string get_cl_dot8_acc_type_from_data_type(const DataType &dt)
Translates a tensor data type to the appropriate OpenCL dot8 accumulator type.
Definition: CLHelpers.cpp:175
std::string to_string(T &&value)
Convert integer and float values to string.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Definition: Error.h:466
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
#define ARM_COMPUTE_ERROR_THROW_ON(status)
Definition: Error.h:455
Status validate_arguments(const ITensorInfo *src, const ITensorInfo *weights, const ITensorInfo *dst, const PadStrideInfo &conv_info)
std::string upper_string(const std::string &val)
Raise a given string to upper case.
Definition: Utils.cpp:360
cl::Kernel create_kernel(const CLCompileContext &ctx, const std::string &kernel_name, const std::set< std::string > &build_opts=std::set< std::string >())
Creates an opencl kernel using a compile context.
Definition: CLHelpers.cpp:404
std::string get_cl_type_from_data_type(const DataType &dt)
Translates a tensor data type to the appropriate OpenCL type.
Definition: CLHelpers.cpp:39
bool has_padding_changed(const std::unordered_map< const ITensorInfo *, PaddingSize > &padding_map)
Check if the previously stored padding info has changed after configuring a kernel.
Definition: Utils.cpp:603
std::pair< Status, Window > validate_and_configure_window(ITensorInfo *src, ITensorInfo *dst)
std::unordered_map< const ITensorInfo *, PaddingSize > get_padding_info(std::initializer_list< const ITensorInfo *> infos)
Stores padding information before configuring a kernel.
Definition: Utils.cpp:588
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
Definition: Validate.h:157
std::string kernel_name

◆ run_op()

void run_op ( ITensorPack tensors,
const Window window,
cl::CommandQueue &  queue 
)
overridevirtual

Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue.

Note
The queue is not flushed by this method, and therefore the kernel will not have been executed by the time this method returns.
Parameters
[in]tensorsA vector containing the tensors to operato on.
[in]windowRegion on which to execute the kernel. (Must be a valid region of the window returned by window()).
[in,out]queueCommand queue on which to enqueue the kernel.

Reimplemented from ICLKernel.

Definition at line 250 of file ClGemmLowpMatrixMultiplyReshapedKernel.cpp.

References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, Window::DimX, Window::DimY, arm_compute::enqueue(), Window::first_slice_window_3D(), ITensorPack::get_const_tensor(), ITensorPack::get_tensor(), Window::set(), arm_compute::test::validation::reference::slice(), Window::slide_window_slice_3D(), and IKernel::window().

251 {
254 
255  const auto src0 = utils::cast::polymorphic_downcast<const ICLTensor *>(tensors.get_const_tensor(TensorType::ACL_SRC_0));
256  const auto src1 = utils::cast::polymorphic_downcast<const ICLTensor *>(tensors.get_const_tensor(TensorType::ACL_SRC_1));
257  auto dst = utils::cast::polymorphic_downcast<ICLTensor *>(tensors.get_tensor(TensorType::ACL_DST));
258 
259  if(src1->info()->num_dimensions() < 3)
260  {
261  // The stride_z for matrix B must be zero if we do not slice
262  ARM_COMPUTE_ERROR_ON(src1->info()->strides_in_bytes()[3] != 0);
263  }
264 
266  Window slice_matrix_b = slice;
267 
268  slice_matrix_b.set(Window::DimX, Window::Dimension(0, 1, 1));
269  slice_matrix_b.set(Window::DimY, Window::Dimension(0, 1, 1));
270 
271  if(_reinterpret_output_as_3d)
272  {
273  // Pass bottom paddings to the kernel if the dst has to be reinterpreted as 3D tensor
274  const unsigned int idx0 = 3 * num_arguments_per_2D_tensor() + 4;
275  const unsigned int total_cross_plane_pad = dst->info()->padding().top + dst->info()->padding().bottom;
276  _kernel.setArg<cl_uint>(idx0, static_cast<unsigned int>(total_cross_plane_pad));
277  }
278 
279  do
280  {
281  Window slice_b = slice;
282  // Don't slice matrix B along the z dimension if matrix B has just 2 dimensions and matrix A more than 2
283  // This scenario can happen when the matrix multiplication is used to perform a convolution operation
284  if(!_slide_matrix_b)
285  {
286  slice_b = slice_matrix_b;
287  }
288 
289  unsigned int idx = 0;
290  add_2D_tensor_argument(idx, src0, slice);
291  add_2D_tensor_argument(idx, src1, slice_b);
292  add_2D_tensor_argument(idx, dst, slice);
293  _kernel.setArg<cl_uint>(idx++, static_cast<unsigned int>(_k));
294  _kernel.setArg<cl_uint>(idx++, static_cast<unsigned int>(src0->info()->strides_in_bytes()[2]));
295  _kernel.setArg<cl_uint>(idx++, static_cast<unsigned int>(src1->info()->strides_in_bytes()[2]));
296  _kernel.setArg<cl_uint>(idx++, static_cast<unsigned int>(dst->info()->strides_in_bytes()[2]));
297  enqueue(queue, *this, slice, lws_hint(), _use_dummy_work_items);
298  }
299  while(window.slide_window_slice_3D(slice));
300 }
const Window & window() const
The maximum window the kernel can be executed on.
Definition: IKernel.cpp:28
void enqueue(cl::CommandQueue &queue, ICLKernel &kernel, const Window &window, const cl::NDRange &lws_hint=CLKernelLibrary::get().default_ndrange(), bool use_dummy_work_items=false)
Add the kernel to the command queue with the given window.
Definition: ICLKernel.cpp:32
cl::NDRange lws_hint() const
Return the Local-Workgroup-Size hint.
Definition: ICLKernel.h:383
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Definition: Error.h:466
static constexpr size_t DimX
Alias for dimension 0 also known as X dimension.
Definition: Window.h:43
static constexpr unsigned int num_arguments_per_2D_tensor()
Returns the number of arguments enqueued per 2D tensor object.
Definition: ICLKernel.h:305
bool slide_window_slice_3D(Window &slice) const
Slide the passed 3D window slice.
Definition: Window.h:349
#define ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(k)
Definition: Validate.h:915
static constexpr size_t DimY
Alias for dimension 1 also known as Y dimension.
Definition: Window.h:45
void add_2D_tensor_argument(unsigned int &idx, const ICLTensor *tensor, const Window &window)
Add the passed 2D tensor&#39;s parameters to the object&#39;s kernel&#39;s arguments starting from the index idx...
Definition: ICLKernel.h:202
Window first_slice_window_3D() const
First 3D slice of the window.
Definition: Window.h:305
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(f, s)
Definition: Validate.h:201
SimpleTensor< T > slice(const SimpleTensor< T > &src, Coordinates starts, Coordinates ends)

◆ validate()

Status validate ( const ITensorInfo src0,
const ITensorInfo src1,
const ITensorInfo dst,
const GEMMLHSMatrixInfo lhs_info,
const GEMMRHSMatrixInfo rhs_info,
const GEMMReshapeInfo gemm_info 
)
static

Static function to check if given info will lead to a valid configuration.

Similar to ClGemmLowpMatrixMultiplyReshapedKernel::configure()

Returns
a status

Definition at line 233 of file ClGemmLowpMatrixMultiplyReshapedKernel.cpp.

References ARM_COMPUTE_RETURN_ON_ERROR, ICloneable< T >::clone(), arm_compute::test::validation::gemm_info, arm_compute::test::validation::lhs_info, arm_compute::test::validation::rhs_info, arm_compute::cpu::kernels::validate_and_configure_window(), and arm_compute::cpu::kernels::validate_arguments().

235 {
236  ElementsProcessed num_elements_processed{};
239  src1->clone().get(),
240  dst->clone().get(),
241  lhs_info,
242  rhs_info,
243  gemm_info,
244  num_elements_processed)
245  .first);
246 
247  return Status{};
248 }
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
Definition: Error.h:204
Status validate_arguments(const ITensorInfo *src, const ITensorInfo *weights, const ITensorInfo *dst, const PadStrideInfo &conv_info)
std::pair< Status, Window > validate_and_configure_window(ITensorInfo *src, ITensorInfo *dst)

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