33 template <
typename DescriptorType>
35 const DescriptorType& desc,
37 const arm::pipe::ProfilingGuid guid)
48 m_ProfilingDetails << std::quoted(
"Name") <<
": " << std::quoted(workloadName);
52 m_ProfilingDetails << std::quoted(
"GUID") <<
": " << std::quoted(std::to_string(guid));
91 m_ProfilingDetails << std::quoted(
"Convolution Method") <<
": "
100 m_ProfilingDetails << std::quoted(name) <<
" : " << std::quoted(value);
108 m_DetailsExist =
true;
115 return m_ProfilingDetails.str();
120 return m_DetailsExist;
125 void PrintInfo(
const TensorInfo& info,
const std::string& ioString,
bool addSeparator =
true)
127 const std::vector<TensorInfo> infoVect{
info };
128 PrintInfos(infoVect, ioString, addSeparator);
131 void PrintInfos(
const std::vector<TensorInfo>& infos,
const std::string& ioString,
bool addSeparator =
true)
133 for (
size_t i = 0; i < infos.size(); i++ )
135 auto shape = infos[i].GetShape();
138 m_ProfilingDetails << std::quoted(ioString +
" " + std::to_string(i)) <<
": ";
144 m_ProfilingDetails << std::quoted(
"Shape") <<
": \"[";
145 for (
unsigned int dim = 0; dim < shape.GetNumDimensions(); dim++ )
147 shape.GetNumDimensions() == dim + 1 ?
148 m_ProfilingDetails << shape[dim] <<
"]\"" :
149 m_ProfilingDetails << shape[dim] <<
",";
157 m_ProfilingDetails << std::quoted(
"DataType") <<
": "
165 m_ProfilingDetails << std::quoted(
"Num Dims") <<
": "
166 << std::quoted(std::to_string(shape.GetNumDimensions()));
173 if ((i < infos.size() - 1) || (addSeparator))
182 std::ostringstream m_ProfilingDetails;