nGraph: fix TopK output shape inference (#2967)
authorTomasz Jankowski <tomasz1.jankowski@intel.com>
Fri, 13 Nov 2020 14:10:42 +0000 (15:10 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 14:10:42 +0000 (17:10 +0300)
commit2966910dacc2ada8cc902c9430b37d5dbbfa3061
tree1ff0830326bf70ab6caceb819500ff014daf2a0f
parentdc2ac0fb9e6cccb6f88fc9156e7a0d784538c244
nGraph: fix TopK output shape inference (#2967)

* nGraph: Fix TopK output shape inference

* nGraph: Correct TopK output shape inference

TopK lower bound of output shape at the axis was mistakenly calculated
basing on max_lenght instead of min_lenght.

* nGraph: Correct TopK output shape inference

* nGraph: Correct TopK type prop test

The topk_negative_axis_support type properties test was comparing
incompatible variables carrying the same value. So it was passing ok.

* nGraph: Add TopK type prop test

* nGraph: Fix code style

* nGraph: Follow review guidelines

Improve variables meaning.
Enforce rigid test pass condition.

* nGraph: Remove magic numbers
ngraph/core/src/op/topk.cpp
ngraph/test/type_prop/top_k.cpp