dnn: Remove a duplicated code snippet for flatten layer

Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
pull/12386/head
Wu Zhiwen 6 years ago
parent 5eb295adf3
commit a11d944f51
  1. 6
      modules/dnn/src/layers/flatten_layer.cpp

@ -83,12 +83,6 @@ public:
int startAxis = clamp(_startAxis, numAxes);
int endAxis = clamp(_endAxis, numAxes);
for (size_t i = 1; i < inputs.size(); i++)
{
CV_Assert(inputs[i] == inputs[0]);
}
CV_Assert(startAxis >= 0);
CV_Assert(endAxis >= startAxis && endAxis < (int)numAxes);

Loading…
Cancel
Save