From 7d2e74f3c0bbcc9e3b153783c7e0db63550cf0bb Mon Sep 17 00:00:00 2001 From: abhi-agg <66322306+abhi-agg@users.noreply.github.com> Date: Mon, 26 Apr 2021 17:26:27 +0200 Subject: [PATCH] Changed underlying template parameter of AlignedMemory class (#111) - AlignedMemory is AlignedVector now instead of AlignedVector - This solves the issue of allocating 8x of the actual required memory for loading files as bytes --- src/translator/definitions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/translator/definitions.h b/src/translator/definitions.h index 32998b9..73d8320 100644 --- a/src/translator/definitions.h +++ b/src/translator/definitions.h @@ -22,8 +22,8 @@ template UPtr UNew(Args &&... args) { template UPtr UNew(UPtr p) { return UPtr(p); } -/// Shortcut to AlignedVector for byte arrays -typedef AlignedVector AlignedMemory; +/// Shortcut to AlignedVector for byte arrays +typedef AlignedVector AlignedMemory; } // namespace bergamot } // namespace marian