Skip to content

Commit

Permalink
[onert] Use the shape signature in baseloader (#14531)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ys44kim authored Jan 13, 2025
1 parent 0f38541 commit 8543108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/onert/core/src/loader/BaseLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ ir::OperandIndex BaseLoader<LoaderDomain>::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)
Expand Down

0 comments on commit 8543108

Please sign in to comment.