MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / validate

Method validate

src/gpu/cl/kernels/ClIm2ColKernel.cpp:402–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402Status ClIm2ColKernel::validate(const ITensorInfo *src,
403 const ITensorInfo *dst,
404 const Size2D &kernel_dims,
405 const PadStrideInfo &conv_info,
406 bool has_bias,
407 const Size2D &dilation,
408 unsigned int num_groups)
409{
410 ARM_COMPUTE_RETURN_ON_ERROR(validate_arguments(src, dst, kernel_dims, conv_info, has_bias, dilation, num_groups));
411 Im2ColConfiguration im2col_config =
412 configure_opencl_kernel(src, kernel_dims, conv_info, has_bias, dilation, num_groups);
413 ARM_COMPUTE_RETURN_ON_ERROR(validate_and_configure_window(src->clone().get(), dst->clone().get(), kernel_dims,
414 conv_info, has_bias, dilation,
415 im2col_config.num_elems_processed_per_iteration,
416 im2col_config.is_padding_required_nchw, num_groups)
417 .first);
418 return Status{};
419}
420
421void ClIm2ColKernel::run_op(ITensorPack &tensors, const Window &window, cl::CommandQueue &queue)
422{

Callers

nothing calls this directly

Calls 5

configure_opencl_kernelFunction · 0.85
validate_argumentsFunction · 0.70
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected