2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
6 #include <boost/test/unit_test.hpp>
7 #include "armnnTfParser/ITfParser.hpp"
8 #include "ParserPrototxtFixture.hpp"
10 BOOST_AUTO_TEST_SUITE(TensorflowParser)
12 struct BiasAddFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser>
14 explicit BiasAddFixture(const std::string& dataFormat)
74 s: ")" + dataFormat + R"("
80 SetupSingleInputSingleOutput({ 1, 3, 1, 3 }, "graphInput", "biasAdd");
84 struct BiasAddFixtureNCHW : BiasAddFixture
86 BiasAddFixtureNCHW() : BiasAddFixture("NCHW") {}
89 struct BiasAddFixtureNHWC : BiasAddFixture
91 BiasAddFixtureNHWC() : BiasAddFixture("NHWC") {}
94 BOOST_FIXTURE_TEST_CASE(ParseBiasAddNCHW, BiasAddFixtureNCHW)
96 RunTest<4>(std::vector<float>(9), { 1, 1, 1, 2, 2, 2, 3, 3, 3 });
99 BOOST_FIXTURE_TEST_CASE(ParseBiasAddNHWC, BiasAddFixtureNHWC)
101 RunTest<4>(std::vector<float>(9), { 1, 2, 3, 1, 2, 3, 1, 2, 3 });
104 BOOST_AUTO_TEST_SUITE_END()