arm_compute v18.08
diff --git a/src/runtime/ITensorAllocator.cpp b/src/runtime/ITensorAllocator.cpp
index 8294201..087f324 100644
--- a/src/runtime/ITensorAllocator.cpp
+++ b/src/runtime/ITensorAllocator.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2017 ARM Limited.
+ * Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -31,13 +31,14 @@
using namespace arm_compute;
ITensorAllocator::ITensorAllocator()
- : _info()
+ : _info(), _alignment(0)
{
}
-void ITensorAllocator::init(const TensorInfo &input)
+void ITensorAllocator::init(const TensorInfo &input, size_t alignment)
{
- _info = input;
+ _info = input;
+ _alignment = alignment;
}
TensorInfo &ITensorAllocator::info()
@@ -49,3 +50,8 @@
{
return _info;
}
+
+size_t ITensorAllocator::alignment() const
+{
+ return _alignment;
+}