Also create all extent tensor constants with const_shape op.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This seems as expected (capturing what is known in the non-error case when building), I'm surprised no tests needed updating - guessing as we don't have one exercising this builder. Could you perhaps add a small C++ unit test for it?
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
---|---|---|
1154–1155 | Could you try one where you do if (auto shapedTy = ...) { ... return .. } return ShapeOfOp::build(builder, result, builder.getType<ShapeType>(), arg); ? Seems like it could be simpler | |
1155 | Nit: reduce scope by moving to just before use | |
1158 | Hoist this out (I think it will both reduce whitespace and read easier) |
Comment Actions
It is but there are some internal test failing that I would like to fix before landing this
Nit: reduce scope by moving to just before use