diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-02-14 14:46:51 +0000 |
---|---|---|
committer | Derek Lamberti <derek.lamberti@arm.com> | 2020-02-18 10:10:07 +0000 |
commit | 5e90aab1cc25681c3e02b4d4436c24ee43400e91 (patch) | |
tree | 1121284177ec93b8e8e8ac07e98209639a562a8f /src/armnnTfParser/test/Gather.cpp | |
parent | 0c2eeac6347533a1d3d456aebea492f5123388f3 (diff) | |
download | armnn-5e90aab1cc25681c3e02b4d4436c24ee43400e91.tar.gz |
COMPMID-3059: Add TF parser support for StridedSlice
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: I31f25f26a50c9054b5650b1be127c84194b56be7
Diffstat (limited to 'src/armnnTfParser/test/Gather.cpp')
-rw-r--r-- | src/armnnTfParser/test/Gather.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/armnnTfParser/test/Gather.cpp b/src/armnnTfParser/test/Gather.cpp index f40dc57556..a6c20fd63e 100644 --- a/src/armnnTfParser/test/Gather.cpp +++ b/src/armnnTfParser/test/Gather.cpp @@ -12,9 +12,10 @@ BOOST_AUTO_TEST_SUITE(TensorflowParser) +namespace { // helper for setting the dimensions in prototxt void dimsHelper(const std::vector<int>& dims, std::string& text){ - for(u_int i=0; i<dims.size(); ++i){ + for(u_int i = 0; i < dims.size(); ++i) { text.append(R"(dim { size: )"); text.append(std::to_string(dims[i])); @@ -25,11 +26,11 @@ void dimsHelper(const std::vector<int>& dims, std::string& text){ // helper for converting from integer to octal representation void octalHelper(const std::vector<int>& indicesContent, std::string& text){ - for (unsigned int i = 0; i < indicesContent.size(); ++i) - { + for(unsigned int i = 0; i < indicesContent.size(); ++i) { text.append(armnnUtils::ConvertInt32ToOctalString(static_cast<int>(indicesContent[i]))); } } +} // namespace struct GatherFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::ITfParser> { |