diff options
Diffstat (limited to 'src/graph/SubGraph.cpp')
-rw-r--r-- | src/graph/SubGraph.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graph/SubGraph.cpp b/src/graph/SubGraph.cpp index f62b2617c5..b1cbb9cc95 100644 --- a/src/graph/SubGraph.cpp +++ b/src/graph/SubGraph.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -67,6 +67,10 @@ std::unique_ptr<Graph> SubGraph::construct(const GraphContext &ctx, std::unique_ } graph->add_tensor_object(std::move(_input)); + // Make sure first and last nodes of the subgraph always do operations out-of-place + _nodes.front()->set_supports_in_place(false); + _nodes.back()->set_supports_in_place(false); + // Construct nodes for(auto &node : _nodes) { |