IVGCVSW-2598 Update attribute to use num_split
authorSaoirse Stewart <saoirse.stewart@arm.com>
Thu, 28 Feb 2019 11:32:41 +0000 (11:32 +0000)
committerSaoirse Stewart Arm <saoirse.stewart@arm.com>
Thu, 28 Feb 2019 11:37:17 +0000 (11:37 +0000)
Change-Id: I5de0e0a2de9241498213d274a6bf2a62ba7da7cc
Signed-off-by: Saoirse Stewart <saoirse.stewart@arm.com>
src/armnnTfParser/TfParser.cpp
src/armnnTfParser/test/Split.cpp

index 1e304cb..8e57e56 100755 (executable)
@@ -2637,8 +2637,8 @@ ParsedTfOperationPtr TfParser::ParseSplit(const tensorflow::NodeDef& nodeDef,
                     % CHECK_LOCATION().AsString()));
     }
 
-    // As Armnn only supports splitter outputs of the same shape, therefore num_splits will be limited to an integer.
-    uint32_t num_split = ReadMandatoryNodeUint32Attribute(nodeDef, "num_or_size_splits");
+    // As Armnn only supports splitter outputs of the same shape, therefore num_split will be limited to an integer.
+    uint32_t num_split = ReadMandatoryNodeUint32Attribute(nodeDef, "num_split");
 
     IOutputSlot& inputSlot = inputs[1 - index].m_IndexedValue->ResolveArmnnOutputSlot(inputs[1 - index].m_Index);
     TensorInfo inputTensorInfo = inputSlot.GetTensorInfo();
index 87cd654..bf42bf7 100644 (file)
@@ -106,7 +106,7 @@ struct SplitFixture : public armnnUtils::ParserPrototxtFixture<armnnTfParser::IT
         }
         m_Prototext += R"(
           attr {
-            key: "num_or_size_splits"
+            key: "num_split"
             value {
               i: 2
             }