6 #include <boost/test/unit_test.hpp> 8 #include "../TfLiteParser.hpp" 17 explicit MeanNoReduceFixture(
const std::string & inputShape,
18 const std::string & outputShape,
19 const std::string & dimShape,
20 const std::string & dimData)
25 "operator_codes": [ { "builtin_code": "MEAN" } ], 29 "shape": )" + inputShape + R"(, 32 "name": "inputTensor", 41 "shape": )" + outputShape + R"( , 44 "name": "outputTensor", 53 "shape": )" + dimShape + R"( , 72 "custom_options_format": "FLEXBUFFERS" 79 { "data": )" + dimData + R"(, }, 87 struct SimpleMeanNoReduceFixture :
public MeanNoReduceFixture
89 SimpleMeanNoReduceFixture() : MeanNoReduceFixture(
"[ 2, 2 ]",
"[ 1, 1 ]",
"[ 0 ]",
"[ ]") {}
94 RunTest<2, armnn::DataType::Float32>(0, {{
"inputTensor", { 1.0f, 1.0f, 2.0f, 2.0f } } },
95 {{
"outputTensor", { 1.5f } } });
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
BOOST_FIXTURE_TEST_CASE(ParseMeanNoReduce, SimpleMeanNoReduceFixture)
BOOST_AUTO_TEST_SUITE_END()
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)