I was writing the embedding op and hit an issue with affine maps. I realized that if I add extra dims to my tensors (1d->2d) in test/ttmlir/Dialect/TTNN/embedding/simple_embedding.mlir test, the test passes. So I'm suspecting there's an edge case where 1d tensors cause an error.
@nsmithtt since you're closest to this code, would you mind taking a look?
I was writing the embedding op and hit an issue with affine maps. I realized that if I add extra dims to my tensors (1d->2d) in
test/ttmlir/Dialect/TTNN/embedding/simple_embedding.mlir
test, the test passes. So I'm suspecting there's an edge case where 1d tensors cause an error.@nsmithtt since you're closest to this code, would you mind taking a look?
Repro:
./build/bin/ttmlir-opt --ttir-load-system-desc --ttir-layout --ttnn-open-device --convert-ttir-to-ttnn test/ttmlir/Dialect/TTNN/embedding/simple_embedding.mlir --mlir-print-stacktrace-on-diagnostic
In the test file, I've added both the working and non-working examples, with the working one commented out.