tenstorrent / tt-mlir

Tenstorrent MLIR compiler
https://tenstorrent.github.io/tt-mlir/
Apache License 2.0
51 stars 7 forks source link

Generation of collapsed linear affine map failing with 1D tensors #461

Closed LPanosTT closed 2 weeks ago

LPanosTT commented 3 weeks ago

In file lib/Dialect/TT/IR/TTOpsTypes.cpp the assertion on line 208 fails. The reason seems to be that the default collapseIntervals variable is passed which has {start: 0, end: -1}. And so, when a 1D tensor is passed we add 1 to end giving us end = 0, and so the assertion fails.

svuckovicTT commented 3 weeks ago

Ah, I seem to have opened a duplicate: #471