aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/SerializeLayerParameters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/SerializeLayerParameters.cpp')
-rw-r--r--src/armnn/SerializeLayerParameters.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/armnn/SerializeLayerParameters.cpp b/src/armnn/SerializeLayerParameters.cpp
index d7f38034f5..209be48248 100644
--- a/src/armnn/SerializeLayerParameters.cpp
+++ b/src/armnn/SerializeLayerParameters.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd. All rights reserved.
+// Copyright © 2017,2022 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "SerializeLayerParameters.hpp"
@@ -26,6 +26,15 @@ void StringifyLayerParameters<BatchNormalizationDescriptor>::Serialize(Parameter
fn("DataLayout", GetDataLayoutName(desc.m_DataLayout));
}
+void StringifyLayerParameters<BatchMatMulDescriptor>::Serialize(ParameterStringifyFunction& fn,
+ const BatchMatMulDescriptor& desc)
+{
+ fn("TransposeX", (desc.m_TransposeX ? "true" : "false"));
+ fn("TransposeX", (desc.m_TransposeY ? "true" : "false"));
+ fn("AdjointX", (desc.m_AdjointX ? "true" : "false"));
+ fn("AdjointY", (desc.m_AdjointY ? "true" : "false"));
+}
+
void StringifyLayerParameters<BatchToSpaceNdDescriptor>::Serialize(ParameterStringifyFunction& fn,
const BatchToSpaceNdDescriptor& desc)
{
@@ -198,6 +207,12 @@ void StringifyLayerParameters<FullyConnectedDescriptor>::Serialize(ParameterStri
fn("TransposeWeightMatrix", (desc.m_TransposeWeightMatrix ? "true" : "false"));
}
+void StringifyLayerParameters<GatherDescriptor>::Serialize(ParameterStringifyFunction& fn,
+ const GatherDescriptor& desc)
+{
+ fn("Axis", std::to_string(desc.m_Axis));
+}
+
void StringifyLayerParameters<L2NormalizationDescriptor>::Serialize(ParameterStringifyFunction& fn,
const L2NormalizationDescriptor& desc)
{