[CPU] Disable display of constant layers in PerfMap (#10307)
This commit is contained in:
@@ -1082,6 +1082,8 @@ void MKLDNNGraph::GetPerfData(std::map<std::string, InferenceEngine::InferenceEn
|
||||
};
|
||||
|
||||
for (int i = 0; i < graphNodes.size(); i++) {
|
||||
if (graphNodes[i]->isConstant())
|
||||
continue;
|
||||
getPerfMapFor(perfMap, graphNodes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@ TEST_P(InferRequestPerfCountersTest, CheckOperationInPerfMap) {
|
||||
std::map<std::string, InferenceEngine::InferenceEngineProfileInfo> perfMap;
|
||||
ASSERT_NO_THROW(perfMap = req.GetPerformanceCounts());
|
||||
for (const auto& op : function->get_ops()) {
|
||||
if (!strcmp(op->get_type_info().name, "Constant"))
|
||||
continue;
|
||||
auto it = perfMap.begin();
|
||||
while (true) {
|
||||
if (it->first.find(op->get_friendly_name() + "_") != std::string::npos || it->first == op->get_friendly_name()) {
|
||||
|
||||
@@ -15,6 +15,8 @@ TEST_P(OVInferRequestPerfCountersTest, CheckOperationInProfilingInfo) {
|
||||
ASSERT_NO_THROW(profiling_info = req.get_profiling_info());
|
||||
|
||||
for (const auto& op : function->get_ops()) {
|
||||
if (!strcmp(op->get_type_info().name, "Constant"))
|
||||
continue;
|
||||
auto op_is_in_profiling_info = std::any_of(std::begin(profiling_info), std::end(profiling_info),
|
||||
[&] (const ov::ProfilingInfo& info) {
|
||||
if (info.node_name.find(op->get_friendly_name() + "_") != std::string::npos || info.node_name == op->get_friendly_name()) {
|
||||
|
||||
Reference in New Issue
Block a user