aboutsummaryrefslogtreecommitdiff
path: root/src/core/GLES_COMPUTE/IGCTensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/GLES_COMPUTE/IGCTensor.cpp')
-rw-r--r--src/core/GLES_COMPUTE/IGCTensor.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/GLES_COMPUTE/IGCTensor.cpp b/src/core/GLES_COMPUTE/IGCTensor.cpp
index 5576665243..19af777446 100644
--- a/src/core/GLES_COMPUTE/IGCTensor.cpp
+++ b/src/core/GLES_COMPUTE/IGCTensor.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -26,7 +26,7 @@
using namespace arm_compute;
IGCTensor::IGCTensor()
- : _mapping(nullptr)
+ : _mapping(nullptr), _needs_shifting(false)
{
}
@@ -52,3 +52,13 @@ uint8_t *IGCTensor::buffer() const
{
return _mapping;
}
+
+bool IGCTensor::needs_shifting() const
+{
+ return _needs_shifting;
+}
+
+void IGCTensor::set_needs_shifting(bool needs_shifting)
+{
+ _needs_shifting = needs_shifting;
+}