[mlir][xegpu] Patch dynamic descriptor creation (#93580)

fixes the bug in XeGPU's `CreateNdDescOp` tensor creation with dynamic offset and strides.
This commit is contained in:
Artem Kroviakov
2024-06-05 21:39:05 +02:00
committed by GitHub
parent 21711f89b9
commit 73a2fd470c

View File

@@ -110,7 +110,7 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
dispatchIndexOpFoldResults(offsets, dynamicOffsets, staticOffsets);
dispatchIndexOpFoldResults(shape, dynamicShape, staticShape);
dispatchIndexOpFoldResults(strides, dynamicStrides, staticOffsets);
dispatchIndexOpFoldResults(strides, dynamicStrides, staticStrides);
auto staticOffsetsAttr = builder.getDenseI64ArrayAttr(staticOffsets);
auto staticShapeAttr = builder.getDenseI64ArrayAttr(staticShape);