ArmNN
 24.02
StringifyLayerParameters< MeanDescriptor > Struct Reference

#include <SerializeLayerParameters.hpp>

Static Public Member Functions

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

Detailed Description

Definition at line 113 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const MeanDescriptor desc 
)
static

Definition at line 241 of file SerializeLayerParameters.cpp.

242 {
243  {
244  std::stringstream ss;
245  int count = 0;
246  for (auto&& var : desc.m_Axis)
247  {
248  if (count > 0)
249  {
250  ss << ",";
251  }
252  ss << var;
253  ++count;
254  }
255  fn("Axis", ss.str());
256  }
257  fn("KeepDims", (desc.m_KeepDims ? "true" : "false"));
258 }

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


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