We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed124fc commit 30f444eCopy full SHA for 30f444e
mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
@@ -130,9 +130,9 @@ struct WgToSgCreateNdOp : public OpConversionPattern<xegpu::CreateNdDescOp> {
130
op, "sgLayout attribute is required in layout");
131
132
SmallVector<int64_t> sgShape;
133
- if (auto sgDataAttr = layout.getSgData())
+ if (auto sgDataAttr = layout.getSgData()) {
134
sgShape = llvm::to_vector_of<int64_t>(sgDataAttr.asArrayRef());
135
- else {
+ } else {
136
assert(wgShape.size() == sgLayout.size() &&
137
"sgLayout and wgShape must have the same rank");
138
sgShape.reserve(wgShape.size());
0 commit comments