升级到3.0.27之后依然不支持scatter的转换,报错如下:
2024-12-26 02:37:50,660 INFO Start hb_compile...
2024-12-26 02:37:50,660 INFO hbdk version: 4.1.13
2024-12-26 02:37:50,660 INFO hmct version: 2.1.2
2024-12-26 02:37:50,661 INFO hb_compile version: 3.3.8
2024-12-26 02:37:51,205 INFO check template yaml load success
loc(fused>["ScatterElements_1605"]): error: 'hbir.scatter_elements' op given dim out of range [0, 5). notes: ['see current operation: %1042 = "hbir.scatter_elements"(%1040, %1039, %1041) }> : (tensor, tensor, tensor) -> tensor'] MLIR Python Diagnostic handler raised exception: Exception: error detected
在之前的帖子(https://developer.horizon.auto/forum/10134)里,您提过尝试减维,减维之后依然报错,是否因为INT64的问题:
loc(fused>["ScatterElements_1286"]): error: 'hbir.scatter_elements' op given dim out of range [0, 4). notes: ['see current operation: %1032 = "hbir.scatter_elements"(%1030, %1029, %1031) }> : (tensor, tensor, tensor) -> tensor'] MLIR Python Diagnostic handler raised exception: Exception: error detected