From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_output_shape_of_squeeze_8cpp.xhtml | 289 ++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 20.02/_output_shape_of_squeeze_8cpp.xhtml (limited to '20.02/_output_shape_of_squeeze_8cpp.xhtml') diff --git a/20.02/_output_shape_of_squeeze_8cpp.xhtml b/20.02/_output_shape_of_squeeze_8cpp.xhtml new file mode 100644 index 0000000000..f94e7e58cd --- /dev/null +++ b/20.02/_output_shape_of_squeeze_8cpp.xhtml @@ -0,0 +1,289 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/OutputShapeOfSqueeze.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
OutputShapeOfSqueeze.cpp File Reference
+
+
+
#include <boost/test/unit_test.hpp>
+#include "../TfLiteParser.hpp"
+#include <iostream>
+#include <string>
+
+

Go to the source code of this file.

+ + + + + + + + + + + + +

+Functions

 BOOST_AUTO_TEST_SUITE (TensorflowLiteParser)
 
 BOOST_FIXTURE_TEST_CASE (EmptySqueezeDims_OutputWithAllDimensionsSqueezed, TfLiteParserFixture)
 
 BOOST_FIXTURE_TEST_CASE (SqueezeDimsNotIncludingSizeOneDimensions_NoDimensionsSqueezedInOutput, TfLiteParserFixture)
 
 BOOST_FIXTURE_TEST_CASE (SqueezeDimsRangePartial_OutputWithDimensionsWithinRangeSqueezed, TfLiteParserFixture)
 
 BOOST_AUTO_TEST_SUITE_END ()
 
+

Function Documentation

+ +

◆ BOOST_AUTO_TEST_SUITE()

+ + + +

◆ BOOST_AUTO_TEST_SUITE_END()

+ +
+
+ + + + + + + +
BOOST_AUTO_TEST_SUITE_END ()
+
+ +

Referenced by BOOST_FIXTURE_TEST_CASE().

+ +
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (EmptySqueezeDims_OutputWithAllDimensionsSqueezed ,
TfLiteParserFixture  
)
+
+ +

Definition at line 27 of file OutputShapeOfSqueeze.cpp.

+ +

References armnn::Float32, TensorInfo::GetNumDimensions(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), and TfLiteParser::OutputShapeOfSqueeze().

+
28 {
29 
30  std::vector<uint32_t> squeezeDims = { };
31 
32  armnn::TensorInfo inputTensorInfo = armnn::TensorInfo(4, m_InputShape, armnn::DataType::Float32);
33  armnn::TensorInfo outputTensorInfo = m_Parser.OutputShapeOfSqueeze(squeezeDims, inputTensorInfo);
34  BOOST_TEST(outputTensorInfo.GetNumElements() == 4);
35  BOOST_TEST(outputTensorInfo.GetNumDimensions() == 2);
36  BOOST_TEST((outputTensorInfo.GetShape() == armnn::TensorShape({ 2, 2 })));
37 };
const TensorShape & GetShape() const
Definition: Tensor.hpp:88
+ + + +
unsigned int GetNumDimensions() const
Definition: Tensor.hpp:92
+
unsigned int GetNumElements() const
Definition: Tensor.hpp:93
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (SqueezeDimsNotIncludingSizeOneDimensions_NoDimensionsSqueezedInOutput ,
TfLiteParserFixture  
)
+
+ +

Definition at line 39 of file OutputShapeOfSqueeze.cpp.

+ +

References armnn::Float32, TensorInfo::GetNumDimensions(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), and TfLiteParser::OutputShapeOfSqueeze().

+
40 {
41  std::vector<uint32_t> squeezeDims = { 1, 2 };
42 
43  armnn::TensorInfo inputTensorInfo = armnn::TensorInfo(4, m_InputShape, armnn::DataType::Float32);
44  armnn::TensorInfo outputTensorInfo = m_Parser.OutputShapeOfSqueeze(squeezeDims, inputTensorInfo);
45  BOOST_TEST(outputTensorInfo.GetNumElements() == 4);
46  BOOST_TEST(outputTensorInfo.GetNumDimensions() == 4);
47  BOOST_TEST((outputTensorInfo.GetShape() == armnn::TensorShape({ 1, 2, 2, 1 })));
48 };
const TensorShape & GetShape() const
Definition: Tensor.hpp:88
+ + + +
unsigned int GetNumDimensions() const
Definition: Tensor.hpp:92
+
unsigned int GetNumElements() const
Definition: Tensor.hpp:93
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (SqueezeDimsRangePartial_OutputWithDimensionsWithinRangeSqueezed ,
TfLiteParserFixture  
)
+
+ +

Definition at line 50 of file OutputShapeOfSqueeze.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END(), armnn::Float32, TensorInfo::GetNumDimensions(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), and TfLiteParser::OutputShapeOfSqueeze().

+
51 {
52  std::vector<uint32_t> squeezeDims = { 1, 3 };
53 
54  armnn::TensorInfo inputTensorInfo = armnn::TensorInfo(4, m_InputShape, armnn::DataType::Float32);
55  armnn::TensorInfo outputTensorInfo = m_Parser.OutputShapeOfSqueeze(squeezeDims, inputTensorInfo);
56  BOOST_TEST(outputTensorInfo.GetNumElements() == 4);
57  BOOST_TEST(outputTensorInfo.GetNumDimensions() == 3);
58  BOOST_TEST((outputTensorInfo.GetShape() == armnn::TensorShape({ 1, 2, 2 })));
59 };
const TensorShape & GetShape() const
Definition: Tensor.hpp:88
+ + + +
unsigned int GetNumDimensions() const
Definition: Tensor.hpp:92
+
unsigned int GetNumElements() const
Definition: Tensor.hpp:93
+
+
+
+
+
+ + + + -- cgit v1.2.1