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 ResizeBilinearFixture : public ParserPrototxtFixture<armnnTfParser::ITfParser>
14 ResizeBilinearFixture()
46 "\000\000\000\000\000\000\200?\000\000\000@\000\000@@\000\000\200@\000\000\240@\000\000\300@\000\000\340@\000\000\000A"
52 name: "resizeBilinearLayer/size"
70 tensor_content: "\005\000\000\000\005\000\000\000"
76 name: "resizeBilinearLayer"
79 input: "resizeBilinearLayer/size"
95 SetupSingleInputSingleOutput({ 1, 3, 3, 1 }, "graphInput", "resizeBilinearLayer");
99 BOOST_FIXTURE_TEST_CASE(ParseResizeBilinear, ResizeBilinearFixture)
101 RunTest<4>(// input data
105 // expected output data
106 { 0.0f, 0.6f, 1.2f, 1.8f, 2.0f,
107 1.8f, 2.4f, 3.0f, 3.6f, 3.8f,
108 3.6f, 4.2f, 4.8f, 5.4f, 5.6f,
109 5.4f, 6.0f, 6.6f, 7.2f, 7.4f,
110 6.0f, 6.6f, 7.2f, 7.8f, 8.0f });
114 BOOST_AUTO_TEST_SUITE_END()