[IE CLDNN] Minor fixed to NMS and TopK (#3224)

This commit is contained in:
Vladimir Paramuzov
2020-11-20 15:37:32 +03:00
committed by GitHub
parent a05b7c76b2
commit 1e392b0180
2 changed files with 2 additions and 1 deletions

View File

@@ -4981,7 +4981,7 @@ void Program::CreateNonMaxSuppressionPrimitive(cldnn::topology& topology, Infere
auto centerPointBox = nonMaxSupression->center_point_box; auto centerPointBox = nonMaxSupression->center_point_box;
auto outputIndices = nonMaxSupression->outData[0]->getTensorDesc().getDims()[0]; auto outputIndices = nonMaxSupression->outData[0]->getTensorDesc().getDims()[0];
auto name = layer_type_name_ID(layer); auto name = layer->outData.size() > 1 ? (layer_type_lower(layer) + ":" + layer->outData[0]->getName()) : layer_type_name_ID(layer);
auto prim = cldnn::non_max_suppression( auto prim = cldnn::non_max_suppression(
name, name,
reorderedInputs[0], reorderedInputs[0],

View File

@@ -62,6 +62,7 @@ ParamsKey ArgMaxMinKernelAxis::GetSupportedKey() const {
k.EnableDifferentTypes(); k.EnableDifferentTypes();
k.EnableBatching(); k.EnableBatching();
k.EnableTensorPitches(); k.EnableTensorPitches();
k.EnableTensorOffset();
return k; return k;
} }