From 3a1e1256946028cb13f31521caec9f08235c7332 Mon Sep 17 00:00:00 2001 From: Gunes Bayir Date: Tue, 3 Jan 2023 21:26:09 +0000 Subject: Handle Intermediate tensors within the sketch - Intermediate tensor info objects are not created by the user anymore. They're returned from create_op and reused. This will prevent allocation of the intermediate tensors in case of possible interface misuse. - Sketch object handles intermediate tensor info pointers inside its implementation class via a unique pointer vector - Conv2d operator is migrated into the new interface Resolves: COMPMID-5776 Change-Id: I9422e3681eef4f2d2922f6d0a5d7786380837c6d Signed-off-by: Gunes Bayir Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8906 Tested-by: Arm Jenkins Reviewed-by: SiCong Li Reviewed-by: Viet-Hoa Do Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- arm_compute/core/ITensorInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arm_compute/core') diff --git a/arm_compute/core/ITensorInfo.h b/arm_compute/core/ITensorInfo.h index ca2837e450..c48e6ebf79 100644 --- a/arm_compute/core/ITensorInfo.h +++ b/arm_compute/core/ITensorInfo.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2022 Arm Limited. + * Copyright (c) 2016-2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -45,7 +45,7 @@ public: */ using Id = int32_t; /** An invalid tensor id within a domain */ - static constexpr Id invalid_tensor_id = -1; + static constexpr Id invalid_tensor_id = 0; /** Get the value representing dynamic dimension state * * @return Value representing dynamic dimension state -- cgit v1.2.1