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

Function DATA_TEST_CASE

tests/validation/NEON/ConvolutionLayer.cpp:1246–1256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1244} // unnamed namespace
1245
1246DATA_TEST_CASE(PrepareWeightShape, framework::DatasetMode::ALL, prepare_weights_shapes, shapes)
1247{
1248 const TensorShape input_shape = std::get<0>(shapes);
1249 const TensorShape expected_shape = std::get<1>(shapes);
1250 const arm_compute::WeightFormat wf = std::get<2>(shapes);
1251 const DataType DT = DataType::F32;
1252 const DataLayout DL = DataLayout::NHWC;
1253 const auto TI = TensorInfo(input_shape, 1 /*num_channels, deprecated*/, DT, DL);
1254 const TensorInfo computed_info = ::arm_compute::test::validation::prepare_weights(TI, wf);
1255 ARM_COMPUTE_EXPECT_EQUAL(computed_info.tensor_shape(), expected_shape, framework::LogLevel::ERRORS);
1256}
1257
1258TEST_SUITE_END() // VariableWeightUtils
1259

Callers 1

Calls 2

prepare_weightsFunction · 0.85
TensorInfoClass · 0.50

Tested by

no test coverage detected