ArmNN
 20.05
ExpandDims.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 (ParseExpandZeroDim, ExpandZeroDim)
 
 BOOST_FIXTURE_TEST_CASE (ParseExpandTwoDim, ExpandTwoDim)
 
 BOOST_FIXTURE_TEST_CASE (ParseExpandThreeDim, ExpandThreeDim)
 
 BOOST_FIXTURE_TEST_CASE (ParseExpandMinusOneDim, ExpandMinusOneDim)
 
 BOOST_FIXTURE_TEST_CASE (ParseExpandMinusThreeDim, ExpandMinusThreeDim)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/5]

BOOST_FIXTURE_TEST_CASE ( ParseExpandZeroDim  ,
ExpandZeroDim   
)

Definition at line 82 of file ExpandDims.cpp.

83 {
84  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo("ExpandDims").second.GetShape() ==
85  armnn::TensorShape({1, 2, 3, 5})));
86 }

◆ BOOST_FIXTURE_TEST_CASE() [2/5]

BOOST_FIXTURE_TEST_CASE ( ParseExpandTwoDim  ,
ExpandTwoDim   
)

Definition at line 88 of file ExpandDims.cpp.

89 {
90  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo("ExpandDims").second.GetShape() ==
91  armnn::TensorShape({2, 3, 1, 5})));
92 }

◆ BOOST_FIXTURE_TEST_CASE() [3/5]

BOOST_FIXTURE_TEST_CASE ( ParseExpandThreeDim  ,
ExpandThreeDim   
)

Definition at line 94 of file ExpandDims.cpp.

95 {
96  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo("ExpandDims").second.GetShape() ==
97  armnn::TensorShape({2, 3, 5, 1})));
98 }

◆ BOOST_FIXTURE_TEST_CASE() [4/5]

BOOST_FIXTURE_TEST_CASE ( ParseExpandMinusOneDim  ,
ExpandMinusOneDim   
)

Definition at line 100 of file ExpandDims.cpp.

101 {
102  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo("ExpandDims").second.GetShape() ==
103  armnn::TensorShape({2, 3, 5, 1})));
104 }

◆ BOOST_FIXTURE_TEST_CASE() [5/5]

BOOST_FIXTURE_TEST_CASE ( ParseExpandMinusThreeDim  ,
ExpandMinusThreeDim   
)

Definition at line 106 of file ExpandDims.cpp.

References BOOST_AUTO_TEST_SUITE_END().

107 {
108  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo("ExpandDims").second.GetShape() ==
109  armnn::TensorShape({2, 1, 3, 5})));
110 }