ArmNN
 21.11
StringifyLayerParameters< MeanDescriptor > Struct Template Reference

#include <SerializeLayerParameters.hpp>

Static Public Member Functions

static void Serialize (ParameterStringifyFunction &fn, const MeanDescriptor &desc)
 

Detailed Description

template<>
struct armnn::StringifyLayerParameters< MeanDescriptor >

Definition at line 98 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const MeanDescriptor desc 
)
static

Definition at line 219 of file SerializeLayerParameters.cpp.

References MeanDescriptor::m_Axis, and MeanDescriptor::m_KeepDims.

220 {
221  {
222  std::stringstream ss;
223  int count = 0;
224  for (auto&& var : desc.m_Axis)
225  {
226  if (count > 0)
227  {
228  ss << ",";
229  }
230  ss << var;
231  ++count;
232  }
233  fn("Axis", ss.str());
234  }
235  fn("KeepDims", (desc.m_KeepDims ? "true" : "false"));
236 }

The documentation for this struct was generated from the following files: