Lower shape_of for unranked tensors.
Materializes shape in stack-allocated memory.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp | ||
---|---|---|
73 | nit: maybe to for loop so it reads better? | |
mlir/lib/IR/StandardTypes.cpp | ||
401 | This is intentional. Memrefs may not have index type, as index has no size. @ftynse Has this changed? So I guess the only way out is to allocate this as int64 and put casts around it. |
mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp | ||
---|---|---|
116 | I could not see any operation in std that supports this. |
nit: maybe to for loop so it reads better?