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 760787b commit ef06295Copy full SHA for ef06295
mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp
@@ -245,10 +245,12 @@ Type CooperativeMatrixType::getElementType() const {
245
}
246
247
uint32_t CooperativeMatrixType::getRows() const {
248
+ assert(getImpl()->shape[0] != ShapedType::kDynamic);
249
return static_cast<uint32_t>(getImpl()->shape[0]);
250
251
252
uint32_t CooperativeMatrixType::getColumns() const {
253
+ assert(getImpl()->shape[1] != ShapedType::kDynamic);
254
return static_cast<uint32_t>(getImpl()->shape[1]);
255
256
0 commit comments