diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime/CL/functions/CLDepthConcatenateLayer.cpp | 5 | ||||
-rw-r--r-- | src/runtime/NEON/functions/NEDepthConcatenateLayer.cpp | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp b/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp index 05b5d54cf7..26d46a438c 100644 --- a/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp +++ b/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -64,6 +64,9 @@ void CLDepthConcatenateLayer::configure(std::vector<ICLTensor *> inputs_vector, depth_offset += inputs_vector.at(i)->info()->dimension(2); } + + // Set valid region from shape + output->info()->set_valid_region(ValidRegion(Coordinates(), output_shape)); } void CLDepthConcatenateLayer::run() diff --git a/src/runtime/NEON/functions/NEDepthConcatenateLayer.cpp b/src/runtime/NEON/functions/NEDepthConcatenateLayer.cpp index 437c9417ce..930f8d5a26 100644 --- a/src/runtime/NEON/functions/NEDepthConcatenateLayer.cpp +++ b/src/runtime/NEON/functions/NEDepthConcatenateLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -62,6 +62,9 @@ void NEDepthConcatenateLayer::configure(std::vector<ITensor *> inputs_vector, IT depth_offset += inputs_vector.at(i)->info()->dimension(2); } + + // Set valid region from shape + output->info()->set_valid_region(ValidRegion(Coordinates(), output_shape)); } void NEDepthConcatenateLayer::run() |