24.04
|
Go to the documentation of this file.
46 using VariantFunctionExecutorPtr =
50 &ClMatMulNativeDefaultVariantValhall::configure_G715_float,
51 &ClMatMulNativeDefaultVariantValhall::configure_G715_quantized);
54 &ClMatMulNativeDefaultVariantValhall::configure_default_float,
55 &ClMatMulNativeDefaultVariantValhall::configure_default_quantized);
57 VariantFunctionExecutorPtr func =
nullptr;
70 const bool act_enabled =
act_info.enabled();
73 return (this->*func)(k, act_enabled);
76 MatMulKernelType ClMatMulNativeDefaultVariantValhall::configure_G715_float(
int k,
bool act_enabled)
79 if (!act_enabled && k % 4 == 0)
87 MatMulKernelType ClMatMulNativeDefaultVariantValhall::configure_G715_quantized(
int k,
bool act_enabled)
90 if (!act_enabled && k % 16 == 0)
98 MatMulKernelType ClMatMulNativeDefaultVariantValhall::configure_default_float(
int k,
bool act_enabled)
105 MatMulKernelType ClMatMulNativeDefaultVariantValhall::configure_default_quantized(
int k,
bool act_enabled)
@ NATIVE_QUANTIZED
Native matrix multiplication for quantized types.
virtual const TensorShape & tensor_shape() const =0
Size for each dimension of the tensor.
@ NATIVE_MMUL_QUANTIZED
Native matrix multiplication using MMUL extension for Quantized types.
T get_function(DataType data_type)
Method to return the matmul native variant function based on data type.
Activation Layer Information class.
ClMatMulNativeDefaultVariantValhall(GPUTarget gpu)
Constructor.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
virtual DataType data_type() const =0
Data type used for each element of the tensor.
T x() const
Alias to access the size of the first dimension.
@ NATIVE_FP
Native matrix multiplication for FP types.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
@ NATIVE_MMUL_FP
Native matrix multiplication using MMUL extension for FP types.
Basic interface for the matmul native kernel variant This is the base class that chooses architecture...
GPUTarget
Available GPU Targets.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
T y() const
Alias to access the size of the second dimension.
Basic container for the OpenCL MatMul Native variant functions.
Class for holding information related to matrix multiplication function.
MatMulKernelType select_kernel(const ITensorInfo *lhs, const ITensorInfo *rhs, const MatMulInfo &info, const ActivationLayerInfo &act_info) override
This method returns the MatMulKernelType for the given inputs.
Valhall based OpenCL matmul configuration.