ArmNN
 20.02
Greater.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "armnnTfParser/ITfParser.hpp"
#include "ParserPrototxtFixture.hpp"

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (ParseGreaterUnsupportedBroadcast, GreaterFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseGreaterTwoByTwo, GreaterFixtureTwoByTwo)
 
 BOOST_FIXTURE_TEST_CASE (ParseGreaterBroadcast1DToTwoByTwo, GreaterBroadcast1DAnd4D)
 
 BOOST_FIXTURE_TEST_CASE (ParseGreaterBroadcast4DAnd1D, GreaterBroadcast4DAnd1D)
 
 BOOST_FIXTURE_TEST_CASE (ParseGreaterMultiDimBroadcast, GreaterMultiDimBroadcast)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/5]

BOOST_FIXTURE_TEST_CASE ( ParseGreaterUnsupportedBroadcast  ,
GreaterFixture   
)

Definition at line 67 of file Greater.cpp.

References ParserPrototxtFixture< TParser >::Setup().

68 {
69  BOOST_REQUIRE_THROW(Setup({ { "input0", {2, 3} },
70  { "input1", {1, 2, 2, 3} } },
71  { "output" }),
73 }

◆ BOOST_FIXTURE_TEST_CASE() [2/5]

BOOST_FIXTURE_TEST_CASE ( ParseGreaterTwoByTwo  ,
GreaterFixtureTwoByTwo   
)

Definition at line 92 of file Greater.cpp.

93 {
94  RunComparisonTest<2>({ { "input0", { 1.0f, 2.0f, 3.0f, 4.0f} },
95  { "input1", { 1.0f, 5.0f, 2.0f, 2.0f} } },
96  { { "output", { 0, 0, 1, 1} } });
97 }

◆ BOOST_FIXTURE_TEST_CASE() [3/5]

BOOST_FIXTURE_TEST_CASE ( ParseGreaterBroadcast1DToTwoByTwo  ,
GreaterBroadcast1DAnd4D   
)

Definition at line 104 of file Greater.cpp.

105 {
106  RunComparisonTest<4>({ { "input0", { 2.0f } },
107  { "input1", { 1.0f, 2.0f, 3.0f, 2.0f } } },
108  { { "output", { 1, 0, 0, 0 } } });
109 }

◆ BOOST_FIXTURE_TEST_CASE() [4/5]

BOOST_FIXTURE_TEST_CASE ( ParseGreaterBroadcast4DAnd1D  ,
GreaterBroadcast4DAnd1D   
)

Definition at line 116 of file Greater.cpp.

117 {
118  RunComparisonTest<4>({ { "input0", { 1.0f, 2.0f, 3.0f, 2.0f } },
119  { "input1", { 3.0f } } },
120  { { "output", { 0, 0, 0, 0 } } });
121 }

◆ BOOST_FIXTURE_TEST_CASE() [5/5]

BOOST_FIXTURE_TEST_CASE ( ParseGreaterMultiDimBroadcast  ,
GreaterMultiDimBroadcast   
)

Definition at line 128 of file Greater.cpp.

References BOOST_AUTO_TEST_SUITE_END().

129 {
130  RunComparisonTest<4>({ { "input0", { 1.0f, 2.0f } },
131  { "input1", { 1.0f, 2.0f, 3.0f,
132  3.0f, 2.0f, 2.0f } } },
133  { { "output", { 0, 0, 0,
134  1, 0, 0,
135  0, 0, 0,
136  0, 0, 0 } } });
137 }