Skip to content

chore(tmt): Use tosa::UNKNOWN_DIM to represent dynamic dimensions when serializing

Yuvaraj Venkatesh requested to merge tmt-unknown-dim into main

MLIR represents dynamic dimensions using ShapedType::kDynamic (INT64_MIN). Casting this value to int32_t overflows and becomes 0, which was previously used to represent unknown dimensions.

To make the representation explicit and consistent, this change replaces 0 with tosa::UNKNOWN_DIM for dynamic dimensions during serialization.

Signed-off-by: Yuvaraj Venkatesh yuvaraj.venkatesh@arm.com

Edited by Yuvaraj Venkatesh

Merge request reports

Loading