diff options
-rw-r--r-- | src/armnn/optimizations/OptimizeConsecutiveReshapes.hpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/armnn/optimizations/OptimizeConsecutiveReshapes.hpp b/src/armnn/optimizations/OptimizeConsecutiveReshapes.hpp index 5047d5d678..f2dd7d23ec 100644 --- a/src/armnn/optimizations/OptimizeConsecutiveReshapes.hpp +++ b/src/armnn/optimizations/OptimizeConsecutiveReshapes.hpp @@ -37,8 +37,6 @@ public: auto& newReshape = *graph.InsertNewLayer<ReshapeLayer>(base.GetInputSlot(0), descriptor, name.c_str()); // Sets tensor info for new layer. newReshape.GetOutputHandler().SetTensorInfo(outInfo); - // Reconnects base with original parent. - newReshape.GetOutputSlot().MoveAllConnections(*parentOut); // Parent is now the new layer. parentOut = &newReshape.GetOutputSlot(); } |