From 8543108c07d62816fda661d34cc5542ac8f14719 Mon Sep 17 00:00:00 2001 From: youngsik kim Date: Mon, 13 Jan 2025 16:34:25 +0900 Subject: [PATCH] [onert] Use the shape signature in baseloader (#14531) This commit use the shape signature in baseloader. if there is an unknown shape in the circle, maintain the unknown shape ONE-DCO-1.0-Signed-off-by: youngsik kim --- runtime/onert/core/src/loader/BaseLoader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/onert/core/src/loader/BaseLoader.h b/runtime/onert/core/src/loader/BaseLoader.h index 9b9a40cc4a8..343a50195cd 100644 --- a/runtime/onert/core/src/loader/BaseLoader.h +++ b/runtime/onert/core/src/loader/BaseLoader.h @@ -364,7 +364,8 @@ ir::OperandIndex BaseLoader::loadOperand(const Tensor *tensor, ir: { ir::Shape shape; // Shape - const auto *tensor_shape = tensor->shape(); + const auto *tensor_shape = + tensor->shape_signature() ? tensor->shape_signature() : tensor->shape(); if (tensor_shape != nullptr) { for (const auto &dim : *tensor_shape)