aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/helpers/MemoryHelpers.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/core/helpers/MemoryHelpers.h b/src/core/helpers/MemoryHelpers.h
index dfa8e60758..6756a90c25 100644
--- a/src/core/helpers/MemoryHelpers.h
+++ b/src/core/helpers/MemoryHelpers.h
@@ -56,13 +56,12 @@ WorkspaceData<TensorType> manage_workspace(const experimental::MemoryRequirement
continue;
}
- const auto alignment = req.alignment;
- const auto aux_info = TensorInfo{ TensorShape(req.size + alignment), 1, DataType::U8 };
+ const auto aux_info = TensorInfo{ TensorShape(req.size), 1, DataType::U8 };
workspace_memory.emplace_back(req.slot, std::make_unique<TensorType>());
auto aux_tensor = workspace_memory.back().second.get();
ARM_COMPUTE_ERROR_ON_NULLPTR(aux_tensor);
- aux_tensor->allocator()->init(aux_info, alignment);
+ aux_tensor->allocator()->init(aux_info);
if(req.lifetime == experimental::MemoryLifetime::Temporary)
{
@@ -83,14 +82,5 @@ WorkspaceData<TensorType> manage_workspace(const experimental::MemoryRequirement
return workspace_memory;
}
-
-template <typename TensorType>
-WorkspaceData<TensorType> manage_workspace(const experimental::MemoryRequirements &mem_reqs,
- MemoryGroup &mgroup,
- ITensorPack &run_pack)
-{
- ITensorPack dummy_prep_pack{};
- return manage_workspace<TensorType>(mem_reqs, mgroup, run_pack, dummy_prep_pack);
-}
} // namespace arm_compute
#endif /* SRC_COMMON_MEMORY_HELPERS_H */