From 5a2bc0169d942f7029d73a3afff1eab18b6f65ef Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Thu, 12 Jan 2023 12:54:49 +0000 Subject: Add Auxiliary tensors The asssign_memory_descriptors method could not automatically assign Auxiliary tensors. Therefore changes are made to allow developers to explicitly mark auxiliary tensors. However, to avoid ambiguity between auxiliary and "intermediate" tensors, we solidify the definitions of both: Intermediate tensors are a strictly topological term. They are defined as "inner" tensors within a workload, hidden from the user, as opposed to input and output tensors exposed to the users. Auxiliary tensors are a subcategory of Intermediate tensors, and are also about memory allocation. They are intermediate tensors that need real memory backing. For more details please see the documentation of MemoryType enum Rename MemoryType::NoAlloc to MemoryType::Virtual Partially resolves: COMPMID-5523 Signed-off-by: SiCong Li Change-Id: Ibde44c2ec1570be9423e0fb38b53bb136ffc36dd Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8940 Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice Reviewed-by: Gunes Bayir --- src/core/TensorInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/TensorInfo.cpp') diff --git a/src/core/TensorInfo.cpp b/src/core/TensorInfo.cpp index 954c6c5f1a..5905ba5215 100644 --- a/src/core/TensorInfo.cpp +++ b/src/core/TensorInfo.cpp @@ -56,7 +56,7 @@ TensorInfo::TensorInfo(const ITensorInfo &info) _quantization_info = info.quantization_info(); _data_layout = info.data_layout(); _are_values_constant = info.are_values_constant(); - _id = invalid_tensor_id; // Tensor Id has to be explicitly set, instead of being copied + _id = info.id(); _lock_paddings = info.lock_paddings(); } @@ -77,7 +77,7 @@ TensorInfo::TensorInfo(const TensorInfo &info) _quantization_info = info.quantization_info(); _data_layout = info.data_layout(); _are_values_constant = info.are_values_constant(); - _id = invalid_tensor_id; // Tensor Id has to be explicitly set, instead of being copied + _id = info.id(); _lock_paddings = false; } TensorInfo::TensorInfo(Format format) -- cgit v1.2.1