ArmNN
 23.05
StringifyLayerParameters< MeanDescriptor > Struct Reference

#include <SerializeLayerParameters.hpp>

Static Public Member Functions

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

Detailed Description

Definition at line 108 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction fn,
const MeanDescriptor desc 
)
static

Definition at line 235 of file SerializeLayerParameters.cpp.

236 {
237  {
238  std::stringstream ss;
239  int count = 0;
240  for (auto&& var : desc.m_Axis)
241  {
242  if (count > 0)
243  {
244  ss << ",";
245  }
246  ss << var;
247  ++count;
248  }
249  fn("Axis", ss.str());
250  }
251  fn("KeepDims", (desc.m_KeepDims ? "true" : "false"));
252 }

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


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