Compute Library
 22.11
GEMMMatrixMultiplyReshaped.cpp File Reference

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 
 arm_compute::test
 
 arm_compute::test::validation
 

Typedefs

using CLGEMMMatrixMultiplyReshaped = CLSynthetizeOperator< ClGemmMatrixMultiplyReshapedKernel >
 
template<typename T >
using CLGEMMMatrixMultiplyReshapedFixture = GEMMMatrixMultiplyReshapedValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped >
 
template<typename T >
using CLGEMMMatrixMultiplyReshapedWithPostOpsFixture = GEMMMatrixMultiplyReshapedWithPostOpsValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped >
 
template<typename T >
using CLGEMMMatrixMultiplyReshapedMixedPrecisionFixture = GEMMMatrixMultiplyReshapedValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped, true >
 
template<typename T >
using CLGEMMMatrixMultiplyReshapedMixedPrecisionWithPostOpsFixture = GEMMMatrixMultiplyReshapedWithPostOpsValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped, true >
 
template<typename T >
using CLGEMMMatrixMultiplyReshaped3DFixture = GEMMMatrixMultiplyReshaped3DValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped >
 
template<typename T >
using CLGEMMMatrixMultiplyReshaped3DMixedPrecisionFixture = GEMMMatrixMultiplyReshaped3DValidationFixture< CLTensor, CLAccessor, T, CLGEMMReshapeLHSMatrix, CLGEMMReshapeRHSMatrix, CLGEMMMatrixMultiplyReshaped, true >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(zip(zip(zip(framework::dataset::make("Input0Info", { TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(10U, 5U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::F16), }), framework::dataset::make("Input1Info",{ TensorInfo(TensorShape(64U, 6U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 6U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 5U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(64U, 6U, 2U), 1, DataType::F32), TensorInfo(TensorShape(48U, 11U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 6U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 6U, 2U), 1, DataType::F16), TensorInfo(TensorShape(128U, 3U, 2U), 1, DataType::F16), })), framework::dataset::make("Input2Info", { TensorInfo(TensorShape(21U), 1, DataType::F32), TensorInfo(TensorShape(21U), 1, DataType::F16), TensorInfo(TensorShape(21U), 1, DataType::QASYMM8), TensorInfo(TensorShape(21U), 1, DataType::F32), TensorInfo(TensorShape(21U), 1, DataType::F32), TensorInfo(TensorShape(21U, 17U), 1, DataType::F16), TensorInfo(TensorShape(21U, 17U), 1, DataType::F16), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F16), })), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F32), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F16), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::QASYMM8), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F32), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F32), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F16), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F16), TensorInfo(TensorShape(21U, 17U, 2U), 1, DataType::F16), })), framework::dataset::make("LHSMInfo",{ GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 2, 4, false, false), GEMMLHSMatrixInfo(4, 2, 4, false, false), GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 4, 1, false, true), })), framework::dataset::make("RHSMInfo",{ GEMMRHSMatrixInfo(4, 4, 1, true, true, false), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), GEMMRHSMatrixInfo(2, 2, 1, true, false, false), GEMMRHSMatrixInfo(2, 2, 1, true, false, false), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), GEMMRHSMatrixInfo(4, 4, 2, true, false, false), })), framework::dataset::make("GEMMInfo",{ GEMMKernelInfo(17, 21, 13, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), 0, 0), GEMMKernelInfo(17, 21, 13, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), 0, 0), GEMMKernelInfo(), GEMMKernelInfo(), GEMMKernelInfo(), GEMMKernelInfo(17, 21, 13, 0, false, false, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), 0, 0), GEMMKernelInfo(17, 21, 13, 0, false, false, true, true, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMRHSMatrixInfo(4, 4, 1, true, true, false), 0, 0), GEMMKernelInfo(17, 21, 13, 0, false, false, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMRHSMatrixInfo(4, 4, 2, true, false, false), 0, 0), })), framework::dataset::make("Expected", { true, true, false, false, false, true, true, true})), input0_info, input1_info, input2_info, output_info, lhs_info, rhs_info, gemm_info, expected)
 
 TEST_CASE (UnsupportedPostOpSequence, framework::DatasetMode::ALL)
 
 TEST_CASE (OutputWidened, framework::DatasetMode::ALL)
 
 TEST_CASE (BroadcastInXDimOnly, framework::DatasetMode::ALL)
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 ARM_COMPUTE_EXPECT (is_post_op_list_valid(m, n, k, batch, data_type, post_ops)==true, framework::LogLevel::ERRORS)
 
 TEST_CASE (BroadcastInYDimOnly, framework::DatasetMode::ALL)
 
 TEST_CASE (BroadcastInBothXandYDims, framework::DatasetMode::ALL)
 
 TEST_CASE (BroadcastInAllDims, framework::DatasetMode::ALL)
 
 combine (combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F32)), a_values_precommit), beta_values_precommit), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, CLGEMMMatrixMultiplyReshapedFixture< float >, framework::DatasetMode::DISABLED, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_nightly), n0_values_nightly), k0_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F32)), a_values_nightly), beta_values_nightly), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall3D, CLGEMMMatrixMultiplyReshaped3DFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F32)), a_values_precommit), beta_values_precommit), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge3D, CLGEMMMatrixMultiplyReshaped3DFixture< float >, framework::DatasetMode::DISABLED, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_nightly), n0_values_nightly), k0_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F32)), a_values_nightly), beta_values_nightly), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMMatrixMultiplyReshapedWithPostOpsFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), framework::dataset::make("interleave_lhs", { false })), framework::dataset::make("interleave_rhs", { false })), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F32)), a_values_precommit), beta_values_precommit), framework::dataset::make("broadcast_bias", { true })), lhs_transpose_values), act_values), post_op_lists))
 
 zip (zip(zip(zip(zip(zip(zip(framework::dataset::make("Input0Info", { TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), }), framework::dataset::make("Input1Info",{ TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(512U, 8U, 2U), 1, DataType::F32), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(128U, 32U, 2U), 1, DataType::F32), })), framework::dataset::make("Input2Info", { TensorInfo(TensorShape(64U), 1, DataType::F32), TensorInfo(TensorShape(64U), 1, DataType::F32), TensorInfo(TensorShape(64U), 1, DataType::F32), TensorInfo(TensorShape(64U), 1, DataType::F32), TensorInfo(TensorShape(64U), 1, DataType::F32), })), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F32), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F32), })), framework::dataset::make("LHSMInfo",{ GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 8, 1, false, true), GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 2, 1, false, false), GEMMLHSMatrixInfo(4, 4, 1, false, false), })), framework::dataset::make("RHSMInfo",{ GEMMRHSMatrixInfo(4, 4, 1, true, true, true), GEMMRHSMatrixInfo(4, 8, 1, true, true, true), GEMMRHSMatrixInfo(8, 4, 1, true, true, true), GEMMRHSMatrixInfo(4, 2, 1, true, false, true), GEMMRHSMatrixInfo(2, 4, 1, true, false, true), })), framework::dataset::make("GEMMInfo",{GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0) })), framework::dataset::make("Expected", { true, true, true, false, true}))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMMatrixMultiplyReshapedFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F32)), a_values_precommit), beta_values_precommit), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, CLGEMMMatrixMultiplyReshapedFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_nightly), n0_export_to_cl_image_values_nightly), k0_export_to_cl_image_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F32)), a_values_nightly), beta_values_nightly), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall3D, CLGEMMMatrixMultiplyReshaped3DFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F32)), a_values_precommit), beta_values_precommit), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge3D, CLGEMMMatrixMultiplyReshaped3DFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_nightly), n0_export_to_cl_image_values_nightly), k0_export_to_cl_image_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F32)), a_values_nightly), beta_values_nightly), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMMatrixMultiplyReshapedWithPostOpsFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), framework::dataset::make("interleave_lhs", { false })), framework::dataset::make("interleave_rhs", { false })), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F32)), a_values_precommit), beta_values_precommit), framework::dataset::make("broadcast_bias", { true })), lhs_transpose_values), act_values), post_op_lists))
 
 combine (combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, CLGEMMMatrixMultiplyReshapedFixture< half >, framework::DatasetMode::DISABLED, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_nightly), n0_values_nightly), k0_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_nightly), beta_values_nightly), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall3D, CLGEMMMatrixMultiplyReshaped3DFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge3D, CLGEMMMatrixMultiplyReshaped3DFixture< half >, framework::DatasetMode::DISABLED, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_nightly), n0_values_nightly), k0_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_nightly), beta_values_nightly), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMMatrixMultiplyReshapedWithPostOpsFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), framework::dataset::make("interleave_lhs", { false })), framework::dataset::make("interleave_rhs", { false })), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), framework::dataset::make("broadcast_bias", { true })), lhs_transpose_values), act_values), post_op_lists))
 
 zip (zip(zip(zip(zip(zip(zip(framework::dataset::make("Input0Info", { TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), }), framework::dataset::make("Input1Info",{ TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), TensorInfo(TensorShape(512U, 8U, 2U), 1, DataType::F16), TensorInfo(TensorShape(256U, 16U, 2U), 1, DataType::F16), TensorInfo(TensorShape(128U, 32U, 2U), 1, DataType::F16), })), framework::dataset::make("Input2Info", { TensorInfo(TensorShape(64U), 1, DataType::F16), TensorInfo(TensorShape(64U), 1, DataType::F16), TensorInfo(TensorShape(64U), 1, DataType::F16), TensorInfo(TensorShape(64U), 1, DataType::F16), TensorInfo(TensorShape(64U), 1, DataType::F16), })), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F16), TensorInfo(TensorShape(64U, 64U, 2U), 1, DataType::F16), })), framework::dataset::make("LHSMInfo",{ GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 8, 1, false, true), GEMMLHSMatrixInfo(4, 4, 1, false, true), GEMMLHSMatrixInfo(4, 2, 1, false, false), GEMMLHSMatrixInfo(4, 4, 1, false, false), })), framework::dataset::make("RHSMInfo",{ GEMMRHSMatrixInfo(4, 4, 1, true, true, true), GEMMRHSMatrixInfo(4, 8, 1, true, true, true), GEMMRHSMatrixInfo(8, 4, 1, true, true, true), GEMMRHSMatrixInfo(4, 2, 1, true, false, true), GEMMRHSMatrixInfo(2, 4, 1, true, false, true), })), framework::dataset::make("GEMMInfo",{GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0), GEMMKernelInfo(64, 64, 64, 0, false, true, false, false, ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU, 1, 1, GEMMLHSMatrixInfo(), GEMMRHSMatrixInfo(), 0, 0) })), framework::dataset::make("Expected", { true, true, true, false, true}))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMMatrixMultiplyReshapedFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, CLGEMMMatrixMultiplyReshapedFixture< half >, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_nightly), n0_export_to_cl_image_values_nightly), k0_export_to_cl_image_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F16)), a_values_nightly), beta_values_nightly), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall3D, CLGEMMMatrixMultiplyReshaped3DFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge3D, CLGEMMMatrixMultiplyReshaped3DFixture< half >, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_nightly), n0_export_to_cl_image_values_nightly), k0_export_to_cl_image_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F16)), a_values_nightly), beta_values_nightly), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMMatrixMultiplyReshapedWithPostOpsFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), framework::dataset::make("interleave_lhs", { false })), framework::dataset::make("interleave_rhs", { false })), framework::dataset::make("export_to_cl_image_rhs", true)), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), framework::dataset::make("broadcast_bias", { true })), lhs_transpose_values), act_values), post_op_lists))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, CLGEMMMatrixMultiplyReshapedMixedPrecisionFixture< half >, framework::DatasetMode::DISABLED, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_nightly), n0_values_nightly), k0_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_nightly), beta_values_nightly), broadcast_bias_values), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall3D, CLGEMMMatrixMultiplyReshaped3DMixedPrecisionFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunLarge3D, CLGEMMMatrixMultiplyReshaped3DMixedPrecisionFixture< half >, framework::DatasetMode::DISABLED, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_w_values, m_h_values), n_values), k_values), b_values), m0_values_nightly), n0_values_nightly), k0_values_nightly), v0_values_nightly), h0_values_nightly), i_values_lhs), i_values_rhs), framework::dataset::make("export_to_cl_image_rhs", false)), framework::dataset::make("DataType", DataType::F16)), a_values_nightly), beta_values_nightly), lhs_transpose_values), act_values))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMMatrixMultiplyReshapedMixedPrecisionWithPostOpsFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(combine(m_values, n_values), k_values), b_values), m0_values_precommit), n0_values_precommit), k0_values_precommit), v0_values_precommit), h0_values_precommit), framework::dataset::make("interleave_lhs", { false })), framework::dataset::make("interleave_rhs", { false })), framework::dataset::make("export_to_cl_image_rhs", { true, false })), framework::dataset::make("DataType", DataType::F16)), a_values_precommit), beta_values_precommit), framework::dataset::make("broadcast_bias", { true })), lhs_transpose_values), act_values), post_op_lists))
 

Variables

 CLGEMMMatrixMultiplyReshapedFixture< float >
 
 input0_info
 
 input1_info
 
 input2_info
 
 lhs_info
 
 rhs_info
 
 gemm_info
 
 CLGEMMMatrixMultiplyReshapedFixture< half >
 
 CLGEMMMatrixMultiplyReshapedMixedPrecisionFixture< half >