port pr17222 changes to CUDA backend
authorYashasSamaga <yashas_2010@yahoo.com>
Mon, 11 May 2020 05:31:01 +0000 (11:01 +0530)
committerYashasSamaga <yashas_2010@yahoo.com>
Mon, 11 May 2020 05:31:01 +0000 (11:01 +0530)
modules/dnn/src/layers/slice_layer.cpp

index 937526a..d771407 100644 (file)
@@ -373,7 +373,7 @@ public:
         auto context = reinterpret_cast<csl::CSLContext*>(context_);
 
         std::vector<std::vector<std::size_t>> offsets;
-        for (const auto& ranges : sliceRanges)
+        for (const auto& ranges : finalSliceRanges)
         {
             std::vector<std::size_t> offsets_i;
             for (const auto& range : ranges)