ProfilingDetails class records any details associated with the operator and passes on for outputting to the user.
More...
#include <ProfilingDetails.hpp>
ProfilingDetails class records any details associated with the operator and passes on for outputting to the user.
Definition at line 21 of file ProfilingDetails.hpp.
◆ ProfilingDetails()
◆ ~ProfilingDetails()
◆ AddDetailsToString()
void AddDetailsToString |
( |
const std::string & |
workloadName, |
|
|
const DescriptorType & |
desc, |
|
|
const WorkloadInfo & |
infos, |
|
|
const arm::pipe::ProfilingGuid |
guid |
|
) |
| |
|
inline |
Add to the ProfilingDetails.
Definition at line 34 of file ProfilingDetails.hpp.
48 m_ProfilingDetails << std::quoted(
"Name") <<
": " << std::quoted(workloadName);
52 m_ProfilingDetails << std::quoted(
"GUID") <<
": " << std::quoted(std::to_string(guid));
57 if (!infos.m_InputTensorInfos.empty())
62 PrintInfos(infos.m_InputTensorInfos,
"Input", !infos.m_OutputTensorInfos.empty());
65 if (!infos.m_OutputTensorInfos.empty())
68 PrintInfos(infos.m_OutputTensorInfos,
"Output",
false);
71 if (infos.m_BiasTensorInfo.has_value())
75 PrintInfo(infos.m_BiasTensorInfo.value(),
"Bias",
false);
78 if (infos.m_WeightsTensorInfo.has_value())
82 PrintInfo(infos.m_WeightsTensorInfo.value(),
"Weights",
false);
85 if (infos.m_ConvolutionMethod.has_value())
91 m_ProfilingDetails << std::quoted(
"Convolution Method") <<
": "
92 << std::quoted(infos.m_ConvolutionMethod.value());
100 m_ProfilingDetails << std::quoted(name) <<
" : " << std::quoted(value);
108 m_DetailsExist =
true;
References OptionalBase::has_value(), WorkloadInfo::m_BiasTensorInfo, WorkloadInfo::m_ConvolutionMethod, WorkloadInfo::m_InputTensorInfos, WorkloadInfo::m_OutputTensorInfos, WorkloadInfo::m_WeightsTensorInfo, JsonUtils::PrintFooter(), JsonUtils::PrintHeader(), JsonUtils::PrintNewLine(), JsonUtils::PrintSeparator(), JsonUtils::PrintTabs(), StringifyLayerParameters< LayerParameter >::Serialize(), and OptionalReferenceSwitch< IsReference, T >::value().
◆ DetailsExist()
◆ GetProfilingDetails()
std::string GetProfilingDetails |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: