35 #include "tests/datasets/ShapeDatasets.h" 40 #include "tests/validation/fixtures/GEMMFixture.h" 62 GEMMMatrixMultiplyInterleavedTransposedValidationFixture<CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped>;
67 GEMMMatrixMultiplyInterleavedTransposed3DValidationFixture<CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped>;
90 const auto m_n_values =
zip(
145 TEST_SUITE(GEMMMatrixMultiplyInterleavedTransposed)
163 constexpr
float alpha = 1.3f;
164 constexpr
float beta = 0.7f;
165 const bool is_interleaved_transposed =
true;
168 const bool fp_mixed_precision =
false;
180 constexpr
float alpha = 1.3f;
181 constexpr
float beta = 0.7f;
182 const bool is_interleaved_transposed =
true;
185 const bool fp_mixed_precision =
false;
197 constexpr
float alpha = 1.3f;
198 constexpr
float beta = 0.7f;
199 const bool is_interleaved_transposed =
true;
202 const bool fp_mixed_precision =
false;
214 constexpr
float alpha = 1.3f;
215 constexpr
float beta = 0.7f;
216 const bool is_interleaved_transposed =
true;
219 const bool fp_mixed_precision =
false;
231 constexpr
float alpha = 1.3f;
232 constexpr
float beta = 0.7f;
233 const bool is_interleaved_transposed =
true;
236 const bool fp_mixed_precision =
false;
253 broadcast_bias_values),
254 framework::dataset::
make("fp16_mixed_precision", false)),
274 broadcast_bias_values),
296 broadcast_bias_values),
297 fp16_mixed_precision_values),
317 broadcast_bias_values),
318 fp16_mixed_precision_values),
constexpr float tolerance_num_f16
F16 Tolerance number.
GEMMMatrixMultiplyInterleavedTransposed3DValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped > CLGEMMMatrixMultiplyReshaped3DFixture
GEMM reshape information class.
half_float::half half
16-bit floating point type
1 channel, 1 F32 per channel
ARM_COMPUTE_EXPECT(has_error==expected, framework::LogLevel::ERRORS)
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
Activation Layer Information class.
static Status validate(const ITensorInfo *input0, const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, float alpha, float beta, bool is_interleaved_transposed, const GEMMReshapeInfo &reshape_info, GPUTarget gpu_target, bool fp_mixed_precision=false, const ActivationLayerInfo &activation_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of CLGEMMMatrixMultiplyKern...
Copyright (c) 2017-2021 Arm Limited.
1 channel, 1 F16 per channel
DatasetMode
Possible dataset modes.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
Accessor implementation for CLTensor objects.
CLSynthetizeFunction< CLGEMMReshapeRHSMatrixKernel > CLGEMMReshapeRHSMatrix
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
validate(CLAccessor(output_state), expected_output)
Lower and Upper Bounded Rectifier ( )
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
GPUTarget
Available GPU Targets.
Class reprensenting a relative tolerance value.
GEMMMatrixMultiplyInterleavedTransposedValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped > CLGEMMMatrixMultiplyReshapedFixture
Store the tensor's metadata.
TEST_CASE(FusedActivation, framework::DatasetMode::ALL)
Validate fused activation expecting the following behaviours:
zip(zip(framework::dataset::make("Weights", { TensorInfo(TensorShape(32U, 13U, 2U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 13U, 2U, 1U), 1, DataType::F32), }), framework::dataset::make("MVBGInfo",{ TensorInfo(TensorShape(2U), 1, DataType::F32), TensorInfo(TensorShape(2U), 1, DataType::F16), TensorInfo(TensorShape(5U), 1, DataType::F32), })), framework::dataset::make("Expected", { true, false, false}))
DataType
Available data types.
constexpr float abs_tolerance_f32(0.0001f)
F32 Absolute tolerance value for comparing reference's output against implementation's output for flo...
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))