aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Marquez Tello <pablo.tello@arm.com>2021-08-10 10:22:51 +0100
committerFreddie Liardet <frederick.liardet@arm.com>2021-08-10 13:23:49 +0100
commite63b41b56235cdcc19c4d76156bfd1b16b98012e (patch)
tree56d4d7583f66c7716d95ef6946e583a24e9171e5
parentb952c37aac62ab87750cc81e972565ed4f798532 (diff)
downloadComputeLibrary-e63b41b56235cdcc19c4d76156bfd1b16b98012e.tar.gz
Fix compiler error in CLActivationLayer
* GCC 7.4 + Ubuntu 16 * Resolves COMPMID-4761. Change-Id: Id259f00c860b23c4a20881dd0c6ab6468cf17385 Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6070 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Nikhil Raj Arm <nikhil.raj@arm.com>
-rw-r--r--src/runtime/gpu/cl/operators/ClActivation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/gpu/cl/operators/ClActivation.cpp b/src/runtime/gpu/cl/operators/ClActivation.cpp
index bef42d7fae..34a2f94fdc 100644
--- a/src/runtime/gpu/cl/operators/ClActivation.cpp
+++ b/src/runtime/gpu/cl/operators/ClActivation.cpp
@@ -69,7 +69,7 @@ std::tuple<IOperator *, StatusCode> ClContext::create_activation(const AclTensor
if(op == nullptr)
{
ARM_COMPUTE_LOG_ERROR_ACL("Couldn't allocate internal resources");
- return { nullptr, StatusCode::OutOfMemory };
+ return std::make_tuple(nullptr, StatusCode::OutOfMemory);
}
op->set_internal_operator(std::move(act_op));